edit_source_from_file#
- Hfss.edit_source_from_file(input_file: str, assignment: str | None = None, is_time_domain: bool | None = True, x_scale: int | None = 1, y_scale: int | None = 1, impedance: float | None = 50, data_format: str | None = 'Power', encoding: str | None = 'utf-8', window: str | None = 'hamming') bool#
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
assignmentisNone, 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: