edit_source_from_file#
- Hfss3dLayout.edit_source_from_file(source: str, input_file: str, is_time_domain: bool | None = True, x_scale: float | None = 1, y_scale: float | None = 1, impedance: float | None = 50, data_format: str | None = 'Power', encoding: str | None = 'utf-8', include_post_effects: bool | None = True, incident_voltage: bool | None = True, 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:
- source
str Source Name.
- input_file
str Full name of the input file.
- is_time_domainbool,
optional Whether the input data is time-based. The defaulti s
True. IfFalse, the input data is frequency-based. Frequency-based data is degrees in this format:Mag/Phase.- x_scale
float,optional Scaling factor for x axis.
- y_scale
float,optional Scaling factor for y axis.
- impedance
float,optional Excitation impedance. Default is 50.
- data_format
str,optional Either “Power”, “Current” or “Voltage”.
- encoding
str,optional Csv file encoding.
- include_post_effectsbool,
optional Either if include or not post-processing effects. Default is True,
- incident_voltagebool,
optional Either if include or incident or total voltage. Default is True, for incident voltage.
- window
str,optional Fft window. Options are
"hamming","hanning","blackman","bartlett"orNone.
- source
- Returns: