-
Notifications
You must be signed in to change notification settings - Fork 198
Description
Environment (OS, Python version, PySpice version, simulator)
Linux, python3.5, PySpice-1.2.0, ngspice-subprocess
Expected Behaviour
Actual Behaviour
File "/usr/local/lib/python3.5/dist-packages/PySpice-1.2.0-py3.5.egg/PySpice/Spice/NgSpice/RawFile.py", line 217, in fix_case
element_translation = {element.lower():element for element in circuit.element_names()}
TypeError: 'odict_keys' object is not callable
File "/usr/local/lib/python3.5/dist-packages/PySpice-1.2.0-py3.5.egg/PySpice/Spice/NgSpice/RawFile.py", line 222, in fix_case
node_translation = {node.lower():node for node in circuit.node_names()}
TypeError: 'dict_keys' object is not callable
File "/usr/local/lib/python3.5/dist-packages/PySpice-1.2.0-py3.5.egg/PySpice/Spice/RawFile.py", line 119, in to_waveform
return WaveForm(self.simplified_name, self.unit(data), abscissa=abscissa)
TypeError: new() missing 1 required positional argument: 'shape'
File "/usr/local/lib/python3.5/dist-packages/PySpice-1.2.0-py3.5.egg/PySpice/Spice/RawFile.py", line 353, in _to_ac_analysis
branches=self.branches(),
TypeError: init() missing 1 required positional argument: 'internal_parameters'
Steps to fix (some of) the behaviour
use circuit.element_names not circuit.element_names()
use circuit.node_names() not circuit.node_names()
return WaveForm(self.simplified_name, self.unit(data), data.shape, abscissa=abscissa)