sample_waveform#
- PostProcessorCircuit.sample_waveform(waveform_data, waveform_sweep, waveform_unit='V', waveform_sweep_unit='s', unit_interval=1e-09, clock_tics=None, pandas_enabled=False)#
Sampling a waveform at clock times plus half unit interval.
- Parameters:
- waveform_data
listorpandas.Series Waveform data.
- waveform_sweep
listorpandas.Series Waveform sweep data.
- waveform_unit
str,optional Waveform units. The default values is
V.- waveform_sweep_unit
str,optional Time units. The default value is
s.- unit_interval
float,optional Unit interval in seconds. The default is
1e-9.- clock_tics
list,optional List with clock tics. The default is
None, in which case the clock tics from the AMI receiver are used.- pandas_enabledbool,
optional Whether to enable the Pandas data format. The default is
False.
- waveform_data
- Returns:
listorpandas.SeriesSampled waveform in
Voltsat different times inseconds.
Examples
>>> from ansys.aedt.core import Circuit >>> circuit = Circuit() >>> circuit.post.sample_ami_waveform(name, probe_name, source_name, circuit.available_variations.nominal)