get_expression_data#

SolutionData.get_expression_data(expression=None, formula='real', convert_to_SI=False, use_quantity=False, sweeps=None)#

Retrieve the real part of the data for an expression.

Parameters:
expressionstr, None

Name of the expression. The default is None, in which case the active expression is used.

formulastr, optional

Data type to be retrieved. Default is real. Options are real, imag, mag, magnitude, db10, db20, phase, phaserad.

convert_to_SIbool, optional

Whether to convert the data to the SI unit system. The default is False.

use_quantitybool, optional

Whether to output data in Quantity format or not. It impacts on performances as it returns array of objects.

sweepslist, str, optional

List of sweeps to consider for the data retrieval. The default is None, which actually takes the primary sweep.

Returns:
(np.array, np.array)

X and Y data for the expression.