Export Files Module¶
This module provides functions for exporting grid data to various file formats.
functions are found in pyflow_acdc.Export_files
Grid Data Export¶
- save_grid_to_file(grid, file_name, folder_name=None):
Exports grid data to a Python file. The file can be used to load the grid data into the model. Files in the example_grids folder are examples of the files that can be generated. Any file added to this folder will be automatically loaded when the pyflow_acdc package is imported.
MATLAB Export¶
save_grid_to_matlab¶
- save_grid_to_matlab(grid, file_name, folder_name=None, dcpol=2)¶
Exports grid to MATLAB format. It is important to note, that for MATACDC format, only one polarity can be chosen for all DC grids.
Parameter
Type
Description
Default
gridGrid
Grid to export
Required
file_namestr
Output filename
Required
folder_namestr
Output folder
None
dcpolint
DC polarity
2