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_file
strorpathlib.Path Full path to the file.
- linkbool,
optional Whether to link the file to the solution. The default is
False.- header_rows
int,optional Header rows. The default is
0.- rows_to_read
int,optional Rows to read. If
-1, then reads until end of file. The default is-1.- column_separator
str,optional Column separator type. Available options are
Space,Tab,Comma, andPeriod. The default isSpace.- data_type
str,optional Data type. Available options are
real,real_imag,mag_ang_deg, andmag_ang_rad. The default isreal.- sweep_columns
int,optional Sweep columns. The default is
0.- total_columns
int,optional Total number of columns. If
-1, then reads the total number of columns. The default is-1.- real_columns
int,optional Number of lefmotst real columns. The default is
1.
- input_file
- Returns:
strTruewhen successful,Falsewhen failed.
References
>>> oModule.ImportData
Examples
>>> from ansys.aedt.core import Circuit >>> cir = Circuit() >>> cir.import_table(input_file="my_file.csv")