import_table#
- Hfss3dLayout.import_table(input_file: str, link: bool | None = False, header_rows: int | None = 0, rows_to_read: int | None = -1, column_separator: str | None = 'Space', data_type: str | None = 'real', sweep_columns: int | None = 0, total_columns: int | None = -1, real_columns: int | None = 1) bool | str#
Import a data table as a solution.
- Parameters:
- input_file
str 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 Hfss3dlayout >>> h3d = Hfss3dlayout() >>> h3d.import_table(input_file="my_file.csv")