Skip to content

Commit

Permalink
Fixed issue that no netcdf could be loaded in Water Depth Algorithm (…
Browse files Browse the repository at this point in the history
…caused by h5py breaking change) (#966)
  • Loading branch information
benvanbasten-ns committed Dec 8, 2023
1 parent b3eb2fc commit 95da28a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
3.4 (unreleased)
----------------

- Nothing changed yet.
- Fixed issue that no netcdf could be loaded in Water Depth Algorithm (caused by h5py breaking change) (#966)


3.3 (2023-12-01)
Expand Down
4 changes: 2 additions & 2 deletions processing/threedidepth_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def new_file_event(self, file_path):

try:
with h5py.File(file_path, "r") as results:
timestamps = results["time"].value
timestamps = results["time"][()]
self.set_timestamps(timestamps)
except Exception as e:
logger.exception(e)
Expand Down Expand Up @@ -179,7 +179,7 @@ def new_file_event(self, file_path):

try:
with h5py.File(file_path, "r") as results:
timestamps = results["time"].value
timestamps = results["time"][()]
self.populate_timestamps(timestamps)
except Exception as e:
logger.exception(e)
Expand Down

0 comments on commit 95da28a

Please sign in to comment.