Skip to content

Commit 07fe7b5

Browse files
fix for newer ngspice version: message "stderr Using SPARSE..."
1 parent 8a73a74 commit 07fe7b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PySpice/Spice/NgSpice/Shared.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,9 @@ def _send_char(message_c, ngspice_id, user_data):
605605
prefix, _, content = message.partition(' ')
606606
if prefix == 'stderr':
607607
self._stderr.append(content)
608-
if content.startswith('Warning:'):
608+
if content.startswith('Using SPARSE'):
609+
func = self._logger.info
610+
elif content.startswith('Warning:'):
609611
func = self._logger.warning
610612
# elif content.startswith('Warning:'):
611613
else:

PySpice/Spice/NgSpice/SimulationType.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
'charge',
8383
)
8484

85-
LAST_VERSION = 35 # released on 2021-08-08
85+
LAST_VERSION = 42 # released on 2023-12-27
8686

8787
for version in range(28, LAST_VERSION +1):
8888
SIMULATION_TYPE[version] = SIMULATION_TYPE[27]

0 commit comments

Comments
 (0)