From 6da5be9a4350b914cb83219d65395346c2183715 Mon Sep 17 00:00:00 2001 From: David Parrini Date: Mon, 25 Mar 2024 10:16:15 -0300 Subject: [PATCH] Fix handling "varies per block" value on CSV files for hourly data --- psr/graf/graf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psr/graf/graf.py b/psr/graf/graf.py index 3a431c9..c8e921c 100644 --- a/psr/graf/graf.py +++ b/psr/graf/graf.py @@ -9,7 +9,7 @@ _IS_PY2 = sys.version_info.major == 2 -__version__ = "2.1.1" +__version__ = "2.1.2" # Number of bytes in a word (int32, float, ...) _WORD = 4 @@ -444,7 +444,7 @@ def _read_header(self, csv_file): next(csv_reader) header_line_4 = next(csv_reader) - self._varies_by_block = int(header_line1[1]) == 1 + self._varies_by_block = int(header_line1[1]) >= 1 self._units = header_line1[3].strip() stage_type = int(header_line1[4]) self._case_initial_stage = int(header_line1[5])