Data import
Engee supports various file formats for data import. Before you get started – upload them to file browser Engee
. To import files, use the button
or interactive drag-and-drop to the file browser area:

The core Engee Based on the Julia programming language, it includes only the most basic packages by default. To add the ability to import files in the desired format, install additional packages using the package manager Pkg.
To view the installed custom packages, use the command Pkg.status().
|
Using basic packages Engee supports importing data from:
-
model files .engee to workspace;
-
scripts .ngscript and .ipynb in script editor
. Execution of cells with variables imports their values into the variable window (for more information, see Working with Python); -
variables from files .mat and .jld2 in the variables window
(more details in Importing and exporting variables); -
blocks from workspace to files custom libraries .nglib
.
| Data import from other formats is implemented using input/output functions (for more information, see Retrieving data from imported files). |
Importing big data
| For working with big data (Big Data) in Engee the structure is used WorkspaceArray. CSV files and a tabular data structure are used to import data into WorkspaceArray DataFrame. |
To create a WorkspaceArray:
-
DataFrame — create a DataFrame based on the available data, for example:
using DataFrames # подключаем пакет DataFrames times = [2 ^ i for i in LinRange(1, 3, 1000)] values = [sin(i ^ 2 + 1) * 2 + cos(i) for i in times] data_frame = DataFrame(time = times, value = values) # создадим DataFrame с двумя столбцами — time и valueCreate a WorkspaceArray from a DataFrame:
my_workspacearray = WorkspaceArray("my_data_frame", data_frame)Where
my_workspacearray— a variable with the WorkspaceArray data type containing data from a DataFrame nameddata_frame. -
CSV — create a CSV file from the received DataFrame:
using CSV #подключаем пакет CSV CSV.write("/user/workspacearray_csv.csv", delim="\t", data_frame)Create a WorkspaceArray from the resulting CSV:
workspacecsv = WorkspaceArray("workspacearray_csv", "/user/workspacearray_csv.csv") # где "/user/workspacearray_csv.csv" — путь до CSV-файла, а "workspacearray_csv" — его имя
To create a WorkspaceArray from an imported CSV, follow the conditions described here.