From 62abb623c21ec2e2fe0a5f15757c2af5e20454c0 Mon Sep 17 00:00:00 2001 From: Cyber-G Date: Tue, 12 Sep 2023 10:43:09 +0200 Subject: [PATCH] RawFile.py: improve fix https://github.com/PySpice-org/PySpice/issues/352 --- PySpice/Spice/NgSpice/RawFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySpice/Spice/NgSpice/RawFile.py b/PySpice/Spice/NgSpice/RawFile.py index 309cf89f..37ac5209 100644 --- a/PySpice/Spice/NgSpice/RawFile.py +++ b/PySpice/Spice/NgSpice/RawFile.py @@ -192,7 +192,7 @@ def _read_header(self, stdout): header_line_iterator = iter(header_lines) try: - self._read_header_field_line(header_line_iterator, 'Note', has_value=False) + self.note = self._read_header_field_line(header_line_iterator, 'Note') except Exception as e: if 'No compatibility mode selected' in str(e): # Reset iterator