Skip to content

ngspice-subprocess is broken #110

@dooboolacky

Description

@dooboolacky

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions