Skip to content

Commit

Permalink
add check for hdf5 file type
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed May 2, 2024
1 parent e762a8a commit fc3bc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funlib/persistence/arrays/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def open_ds(filename: str, ds_name: str, mode: str = "r") -> Array:
logger.debug("opened N5 dataset %s in %s", ds_name, filename)
return Array(ds, roi, voxel_size, chunk_shape=chunk_shape)

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

Expand Down

0 comments on commit fc3bc5f

Please sign in to comment.