Skip to content

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