You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for element in analysis.elements.values():
print(element, float(element))
I am running the above snippet for AC sensitivity analysis, however, I'm getting an error as the None type object has no elements (analysis -none object), I have tried printing nodes too but it produces the same error. If I run the dc_sensitivity analysis it works fine. Please help?
The text was updated successfully, but these errors were encountered:
Environment (OS - Ubuntu 22.4, Python version - 3.10(2), PySpice version - 1.5, simulator -Ngspice 36)
Expected Behaviour - Should return ac sensitivity analysis for nodes or circuit elements
Actual Behaviour - Creates None type object
Steps to reproduce the behavior -
circuit = Circuit('LPF')
circuit.SinusoidalVoltageSource('in', 'x0', circuit.gnd, amplitude=3 @ u_V, frequency=1 @ u_kHz)
circuit.V(1, 'xo' , circuit.gnd, 10 @ u_V)
circuit.R(1, 'xo', 'out', 1 @ u_kOhm)
circuit.R(2, 'out', circuit.gnd, 10 @ u_kOhm)
circuit.C(1, 'out', circuit.gnd, 1@u_uF)
simulator = circuit.simulator(temprature=25, nominal_temperature=25)
analysis = simulator.ac_sensitivity(output_variable='v(out)', start_frequency=10@u_Hz, stop_frequency=10@u_kHz, variation= 'dec', number_of_points=10)
analysis = simulator.dc_sensitivity('v(out)')
for element in analysis.elements.values():
print(element, float(element))
I am running the above snippet for AC sensitivity analysis, however, I'm getting an error as the None type object has no elements (analysis -none object), I have tried printing nodes too but it produces the same error. If I run the dc_sensitivity analysis it works fine. Please help?
The text was updated successfully, but these errors were encountered: