From 1e69a16fa55e4c141763f46ed3ecdea17e22ce2e Mon Sep 17 00:00:00 2001 From: Filippo Volpe Date: Sun, 20 Feb 2022 13:18:23 +0100 Subject: [PATCH 1/3] handle ngspice notes and Trying in stderr --- PySpice/Spice/NgSpice/Shared.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PySpice/Spice/NgSpice/Shared.py b/PySpice/Spice/NgSpice/Shared.py index bf4cdb52..8b95a304 100644 --- a/PySpice/Spice/NgSpice/Shared.py +++ b/PySpice/Spice/NgSpice/Shared.py @@ -625,7 +625,10 @@ def _send_char(message_c, ngspice_id, user_data): self._stderr.append(content) if content.startswith('Warning:'): func = self._logger.warning - # elif content.startswith('Warning:'): + elif content.startswith('Note:'): + func = self._logger.note + elif content.startswith('Trying'): + func = self._logger.note else: self._error_in_stderr = True func = self._logger.error From 959fd22f62a4d68de1b9e1f854bf1bb463cdcc0e Mon Sep 17 00:00:00 2001 From: Filippo Volpe Date: Sun, 20 Feb 2022 17:10:09 +0100 Subject: [PATCH 2/3] changed logger to info --- PySpice/Spice/NgSpice/Shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySpice/Spice/NgSpice/Shared.py b/PySpice/Spice/NgSpice/Shared.py index 8b95a304..6a7e7ae9 100644 --- a/PySpice/Spice/NgSpice/Shared.py +++ b/PySpice/Spice/NgSpice/Shared.py @@ -626,9 +626,9 @@ def _send_char(message_c, ngspice_id, user_data): if content.startswith('Warning:'): func = self._logger.warning elif content.startswith('Note:'): - func = self._logger.note + func = self._logger.info elif content.startswith('Trying'): - func = self._logger.note + func = self._logger.info else: self._error_in_stderr = True func = self._logger.error From a973211c8ee6ab4d2c85df5a8d3b29ec537c9208 Mon Sep 17 00:00:00 2001 From: Filippo Volpe Date: Sat, 21 Jan 2023 19:41:30 +0100 Subject: [PATCH 3/3] added handling info supplies reduced --- PySpice/Spice/NgSpice/Shared.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PySpice/Spice/NgSpice/Shared.py b/PySpice/Spice/NgSpice/Shared.py index 6a7e7ae9..0c3bb097 100644 --- a/PySpice/Spice/NgSpice/Shared.py +++ b/PySpice/Spice/NgSpice/Shared.py @@ -629,6 +629,8 @@ def _send_char(message_c, ngspice_id, user_data): func = self._logger.info elif content.startswith('Trying'): func = self._logger.info + elif content.startswith('Supplies reduced'): + func = self._logger.info else: self._error_in_stderr = True func = self._logger.error