From 0fec0b018ad55e751caadf6102b7a7c0a5e3420d Mon Sep 17 00:00:00 2001 From: "Martin B. Eriksen" Date: Mon, 8 Apr 2024 17:01:21 +0200 Subject: [PATCH] Extensions starts with a dot --- caiman/base/movies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caiman/base/movies.py b/caiman/base/movies.py index 60162a52e..4994020b4 100644 --- a/caiman/base/movies.py +++ b/caiman/base/movies.py @@ -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")