Skip to content

Commit fc3bc5f

Browse files
committed
add check for hdf5 file type
1 parent e762a8a commit fc3bc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

funlib/persistence/arrays/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def open_ds(filename: str, ds_name: str, mode: str = "r") -> Array:
384384
logger.debug("opened N5 dataset %s in %s", ds_name, filename)
385385
return Array(ds, roi, voxel_size, chunk_shape=chunk_shape)
386386

387-
elif filename.endswith(".h5") or filename.endswith(".hdf"):
387+
elif filename.endswith(".h5") or filename.endswith(".hdf") or filename.endswith(".hdf5"):
388388
logger.debug("opening H5 dataset %s in %s", ds_name, filename)
389389
ds = h5py.File(filename, mode=mode)[ds_name]
390390

0 commit comments

Comments
 (0)