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:
- expression
str,None Name of the expression. The default is
None, in which case the active expression is used.- formula
str,optional Data type to be retrieved. Default is
real. Options arereal,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
Quantityformat or not. It impacts on performances as it returns array of objects.- sweeps
list,str,optional List of sweeps to consider for the data retrieval. The default is
None, which actually takes the primary sweep.
- expression
- Returns:
- (
np.array,np.array) X and Y data for the expression.
- (