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')[source]#

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_filestr

Full name of the input file. If assignment is None, it loads directly the file, in this case the file must have AEDT format.

assignmentstr, 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_scalefloat, optional
Scaling factor for the x axis. This argument is ignored if the algorithm

identifies the format from the file header.

y_scalefloat, optional
Scaling factor for the y axis. This argument is ignored if the algorithm

identifies the format from the file header.

impedancefloat, optional

Excitation impedance. Default is 50.

data_formatstr, optional

Data format. Options are "Current", "Power", and "Voltage". This argument is ignored if the algoritmm identifies the format from the file header.

encodingstr, optional

CSV file encoding.

windowstr, optional

Fft window. Options are "hamming", "hanning", "blackman", "bartlett" or None.

Returns:
bool