Skip to content

Commit

Permalink
Fix handling "varies per block" value on CSV files for hourly data
Browse files Browse the repository at this point in the history
  • Loading branch information
dparrini committed Mar 25, 2024
1 parent 55f6087 commit 6da5be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psr/graf/graf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 6da5be9

Please sign in to comment.