Skip to content

Commit

Permalink
Merge pull request #1326 from marberi/dev
Browse files Browse the repository at this point in the history
Extensions starts with a dot
  • Loading branch information
pgunn committed Apr 11, 2024
2 parents a5de8bf + 0fec0b0 commit f5d5295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caiman/base/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1951,8 +1951,8 @@ def load_iter(file_name: Union[str, list[str]], subindices=None, var_name_hdf5:
yield frame # was frame[..., 0].astype(outtype)
return

elif extension in ('.hdf5', '.h5', '.nwb', '.mat', 'n5', 'zarr'):
if extension in ('n5', 'zarr'): # Thankfully, the zarr library lines up closely with h5py past the initial open
elif extension in ('.hdf5', '.h5', '.nwb', '.mat', '.n5', '.zarr'):
if extension in ('.n5', '.zarr'): # Thankfully, the zarr library lines up closely with h5py past the initial open
f = zarr.open(file_name, "r")
else:
f = h5py.File(file_name, "r")
Expand Down

0 comments on commit f5d5295

Please sign in to comment.