edit_source_from_file#
- Hfss.edit_source_from_file(input_file, assignment=None, is_time_domain=True, x_scale=1, y_scale=1, impedance=50, data_format='Power', encoding='utf-8', window='hamming')#
Edit a source from file data.
File data is a CSV containing either frequency data or time domain data that will be converted through FFT.
- Parameters:
- input_file
str
Full name of the input file. If
assignment
isNone
, it loads directly the file, in this case the file must have AEDT format.- assignment
str
,optional
Port name and mode. For example,
"Port1:1"
. The port name must be defined if the solution type is other than Eigenmodal.- is_time_domainbool,
optional
Whether the input data is time-based or frequency-based. Frequency based data are Mag/Phase (deg).
- x_scale
float
,optional
- Scaling factor for the x axis. This argument is ignored if the algorithm
identifies the format from the file header.
- y_scale
float
,optional
- Scaling factor for the y axis. This argument is ignored if the algorithm
identifies the format from the file header.
- impedance
float
,optional
Excitation impedance. Default is 50.
- data_format
str
,optional
Data format. Options are
"Current"
,"Power"
, and"Voltage"
. This argument is ignored if the algoritmm identifies the format from the file header.- encoding
str
,optional
CSV file encoding.
- window
str
,optional
Fft window. Options are
"hamming"
,"hanning"
,"blackman"
,"bartlett"
orNone
.
- input_file
- Returns: