diff --git a/src/spyglass/utils/nwb_helper_fn.py b/src/spyglass/utils/nwb_helper_fn.py index 3fe0bbd0c..fee72eb42 100644 --- a/src/spyglass/utils/nwb_helper_fn.py +++ b/src/spyglass/utils/nwb_helper_fn.py @@ -96,7 +96,6 @@ def get_nwb_file(nwb_file_path, **kwargs): nwbfile = io.read() __open_nwb_files[nwb_file_path] = (io, nwbfile) - __open_nwb_files.clear() return_io = kwargs.pop("return_io", False) if return_io: return nwbfile, io