Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Incorrectly handles stderr outputs that aren't errors from libngspice version 43 #381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kreijstal
Copy link

Fixes #379

This pull request addresses an issue where PySpice incorrectly handles certain stderr outputs from libngspice version 43, specifically messages like "Using SPARSE 1.3 as Direct Linear Solver". These messages, while appearing on stderr, are informational and not indicative of errors.

Changes:

  • Modified the _send_char callback in Spice/NgSpice/Shared.py to specifically handle messages starting with "Using".
  • These messages are now treated as debug output instead of errors, preventing the self._error_in_stderr flag from being set and avoiding the NgSpiceCommandError.

…spice version 43

**Fixes PySpice-org#379**

This pull request addresses an issue where PySpice incorrectly handles certain stderr outputs from libngspice version 43, specifically messages like "Using SPARSE 1.3 as Direct Linear Solver". These messages, while appearing on stderr, are informational and not indicative of errors.

**Changes:**

- Modified the `_send_char` callback in `Spice/NgSpice/Shared.py` to specifically handle messages starting with "Using".
- These messages are now treated as debug output instead of errors, preventing the `self._error_in_stderr` flag from being set and avoiding the `NgSpiceCommandError`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly handles stderr outputs that aren't errors from libngspice version 43
1 participant