import_table#

Circuit.import_table(input_file, link=False, header_rows=0, rows_to_read=-1, column_separator='Space', data_type='real', sweep_columns=0, total_columns=-1, real_columns=1)#

Import a data table as a solution.

Parameters:
input_filestr

Full path to the file.

linkbool, optional

Whether to link the file to the solution. The default is False.

header_rowsint, optional

Header rows. The default is 0.

rows_to_readint, optional

Rows to read. If -1, then reads until end of file. The default is -1.

column_separatorstr, optional

Column separator type. Available options are Space, Tab, Comma, and Period. The default is Space.

data_typestr, optional

Data type. Available options are real, real_imag, mag_ang_deg, and mag_ang_rad. The default is real.

sweep_columnsint, optional

Sweep columns. The default is 0.

total_columnsint, optional

Total number of columns. If -1, then reads the total number of columns. The default is -1.

real_columnsint, optional

Number of lefmotst real columns. The default is 1.

Returns:
str

True when successful, False when failed.

References

>>> oModule.ImportData

Examples

>>> from ansys.aedt.core import Circuit
>>> cir = Circuit()
>>> cir.import_table(input_file="my_file.csv")