Open
Conversation
Contributor
Author
… an unexpected keyword argument 'basey'
Error :
Traceback (most recent call last):
File "***/PySpice/examples/diode/diode-characteristic-curve.py", line 187, in <module>
ax2.semilogy(analysis.out, static_resistance, basey=10)
File "***/pyspice3.11-venv/lib/python3.11/site-packages/matplotlib/axes/_axes.py", line 1958, in semilogy
self.set_yscale('log', **d)
File "***/pyspice3.11-venv/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 73, in wrapper
return get_method(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "***/pyspice3.11-venv/lib/python3.11/site-packages/matplotlib/axis.py", line 837, in _set_axes_scale
ax._axis_map[name]._set_scale(value, **kwargs)
File "***/pyspice3.11-venv/lib/python3.11/site-packages/matplotlib/axis.py", line 796, in _set_scale
self._scale = mscale.scale_factory(value, self, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "***/pyspice3.11-venv/lib/python3.11/site-packages/matplotlib/scale.py", line 717, in scale_factory
return scale_cls(axis, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LogScale.__init__() got an unexpected keyword argument 'basey'
|
you could use the other prs that have solved this issue as a reference/starting point |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


NGSpice has changed the structure of its output (on 2021-01-01 and 2022-03-14) ; please read #352 (comment) for more info.
There is a mismatch between what is expected in PySpice and the actual output.
_read_header() is in charge of processing the output from NGSpice.
This PR implements a fix that addresses the new possible structures of the output of NGSpice.
It considers that the output can have three formats which can happen depending on the host linux distribution: