import_table#
- Hfss3dLayout.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
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:
str
True
when successful,False
when failed.
References
>>> oModule.ImportData
Examples
>>> from ansys.aedt.core import Hfss3dlayout >>> h3d = Hfss3dlayout() >>> h3d.import_table(input_file="my_file.csv")