import_table#
- Hfss.import_table(input_file, name, is_real_imag=True, is_field=False, column_names=None, independent_columns=None)#
Import a data table.
The table can have multiple independent real-valued columns of data, and multiple dependent real- or complex-valued columns of data. The data supported is comma delimited format (.csv). The first row may contain column names. Complex data columns are inferred from the column data format. In comma delimited format, “(double, double)” denotes a complex number.
- Parameters:
- input_file
str
Full path to the file. Supported formats is
".csv"
.- name
str
Table name.
- is_real_imagbool,
optional
Whether to use real and imaginary to interpret data for any complex column. If
False
, then use magnitude and phase in degrees. The default isTrue
.- is_fieldbool,
optional
Whether to matrix data. If
True
, then use field data. The default isFalse
.- column_names
list
,optional
Column names. The default is
None
, in which case column names obtained from data file are assigned.- independent_columns
list
,optional
Indicates which columns are independent. If
None
, only the first column is independent.
- input_file
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oModule.ImportTable
Examples
>>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.import_table(input_file="my_file.csv")