zero.liso.base module¶
Base LISO parser
-
class
zero.liso.base.
LisoNoisyElement
(component, suffix=None, index=None)[source]¶ Bases:
object
LISO noisy element
-
OPAMP_NOISE_TYPE_INV_CURRENT
= 2¶
-
OPAMP_NOISE_TYPE_NON_INV_CURRENT
= 1¶
-
OPAMP_NOISE_TYPE_VOLTAGE
= 0¶
-
property
has_opamp_inv_current_noise
¶
-
property
has_opamp_non_inv_current_noise
¶
-
property
has_opamp_voltage_noise
¶
-
property
has_suffix
¶ Whether a noise type suffix has been defined for this noisy element.
-
-
class
zero.liso.base.
LisoOutputCurrent
(component=None, **kwargs)[source]¶ Bases:
zero.liso.base.LisoOutputElement
LISO output current
-
OUTPUT_TYPE
= 'current'¶
-
property
component
¶ The output current component
-
-
class
zero.liso.base.
LisoOutputElement
(type_, element=None, scales=None, index=None)[source]¶ Bases:
object
LISO output element
-
OUTPUT_TYPE
= None¶
-
SUPPORTED_SCALES
= {'imaginary': {'imag': ['im', 'imag']}, 'magnitude': {'abs': ['abs'], 'db': ['db']}, 'phase': {'deg': ['deg', 'degrees', 'degrees (>0)', 'degrees (<0)', 'degrees (continuous)']}, 'real': {'real': ['re', 'real']}}¶
-
property
has_imag
¶ Whether the output has a imaginary scale
-
property
has_magnitude
¶ Whether the output has a magnitude scale
-
property
has_phase
¶ Whether the output has a phase scale
-
property
has_real
¶ Whether the output has a real scale
-
property
imag_index
¶ The index of the imaginary scale in the scale list
-
property
imag_scales
¶
-
property
magnitude_index
¶ The index of the magnitude scale in the scale list
-
property
magnitude_scales
¶
-
property
n_scales
¶ Number of scales
-
property
phase_index
¶ The index of the phase scale in the scale list
-
property
phase_scales
¶
-
property
real_index
¶ The index of the real scale in the scale list
-
property
real_scales
¶
-
property
scales
¶
-
-
class
zero.liso.base.
LisoOutputVoltage
(node=None, **kwargs)[source]¶ Bases:
zero.liso.base.LisoOutputElement
LISO output voltage
-
OUTPUT_TYPE
= 'voltage'¶
-
property
node
¶ The output voltage node
-
-
class
zero.liso.base.
LisoParser
[source]¶ Bases:
object
Base LISO parser
-
add_noisy_element
(noisy_element)[source]¶ Add noise source.
This stores the specified noise source for use in building the solution.
- Parameters
noisy_element (
LisoNoiseSource
) – The noise source to add.- Raises
ValueError – If the specified noise source is already present.
-
add_noisy_sum_element
(noisy_sum_element)[source]¶ Add noise sum source.
This stores the specified noise source for use in building the sum function in the solution.
- Parameters
noisy_sum_element (
LisoNoiseSource
) – The noise source to add to sum.- Raises
ValueError – If the specified noise sum source is already present.
-
add_response_output
(output)[source]¶ Add response output.
This stores the specified sink for use in building the solution.
- Parameters
sink (
LisoOutputElement
) – The sink to add.- Raises
ValueError – If the specified sink is already present.
-
property
displayed_noise_objects
¶ Noise sources to be plotted
-
property
frequencies
¶ Analysis frequencies
-
property
inductor_couplings
¶
-
property
input_impedance
¶ Circuit input impedance
-
property
input_node_n
¶ Circuit negative input node
-
property
input_node_p
¶ Circuit positive input node
-
property
input_refer
¶ Whether noise is project to the input.
-
property
input_type
¶ Circuit input type
-
property
n_displayed_noise
¶
-
property
n_response_outputs
¶
-
property
n_summed_noise
¶
-
property
noise_output_element
¶ Node or component that noise sources in the circuit are projected to.
Note: this is a string.
-
property
noisy_elements
¶
-
property
noisy_sum_elements
¶
-
property
opamp_names
¶ Get set of op-amp component names in the circuit
-
property
opamp_output_node_names
¶ Get set of node names associated with outputs of opamps in the circuit
-
property
output_components
¶ The output components of the responses computed in the analysis
-
property
output_nodes
¶ The output nodes of the responses computed in the analysis
-
property
output_type
¶ Response output type
-
property
parsing_started
¶
-
property
plottable
¶ Whether the analysis will calculate something that can be plotted
-
property
resistor_names
¶ Get set of resistor component names in the circuit
-
property
response_outputs
¶
-
solution
(force=False, set_default_plots=True, **kwargs)[source]¶ Get the solution to the analysis defined in the parsed file.
-
property
summed_noise_objects
¶ Noise sources included in the sum column
-
property
will_calc_component_responses
¶ Whether the analysis will calculate responses to components
-
property
will_calc_node_responses
¶ Whether the analysis will calculate responses to nodes
-
property
will_calc_noise
¶ Whether the analysis will calculate noise
-
property
will_calc_responses
¶ Whether the analysis will calculate responses
-
-
exception
zero.liso.base.
LisoParserError
(message, line=None, pos=None, **kwargs)[source]¶ Bases:
ValueError
LISO parser error