From fac1ee09ff0d6161e1295e7a2893383989dcb4a3 Mon Sep 17 00:00:00 2001 From: jguides Date: Tue, 26 Nov 2024 07:54:21 -0800 Subject: [PATCH] set default close_file to False --- src/spyglass/utils/dj_helper_fn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spyglass/utils/dj_helper_fn.py b/src/spyglass/utils/dj_helper_fn.py index 9142eb26a..d7fd3b9f8 100644 --- a/src/spyglass/utils/dj_helper_fn.py +++ b/src/spyglass/utils/dj_helper_fn.py @@ -274,7 +274,7 @@ def fetch_nwb(query_expression, nwb_master, *attrs, **kwargs): """ kwargs["as_dict"] = True # force return as dictionary - close_file = kwargs.pop("close_file", True) + close_file = kwargs.pop("close_file", False) tbl, attr_name = nwb_master if "analysis" in attr_name: