From 164d35ba97b3959f9482e918b0f2177123b7ac2a Mon Sep 17 00:00:00 2001 From: Garrett Date: Mon, 16 Oct 2023 13:15:28 -0700 Subject: [PATCH] Update manage_neuroconv.py --- pyflask/manageNeuroconv/manage_neuroconv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyflask/manageNeuroconv/manage_neuroconv.py b/pyflask/manageNeuroconv/manage_neuroconv.py index c128938a3..2f7073897 100644 --- a/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/pyflask/manageNeuroconv/manage_neuroconv.py @@ -525,7 +525,7 @@ def generate_dataset(test_data_directory_path: str): def inspect_nwb_file(payload): - from nwbinspector import inspect_nwbfile + from nwbinspector import inspect_nwbfile, load_config from nwbinspector.nwbinspector import InspectorOutputJSONEncoder messages = list( @@ -534,7 +534,7 @@ def inspect_nwb_file(payload): "check_description", "check_data_orientation", ], # TODO: remove when metadata control is exposed - config="dandi", + config=load_config(filepath_or_keyword="dandi"), **payload, ) ) @@ -543,7 +543,7 @@ def inspect_nwb_file(payload): def inspect_nwb_folder(payload): - from nwbinspector import inspect_all + from nwbinspector import inspect_all, load_config from nwbinspector.nwbinspector import InspectorOutputJSONEncoder messages = list( @@ -553,7 +553,7 @@ def inspect_nwb_folder(payload): "check_description", "check_data_orientation", ], # TODO: remove when metadata control is exposed - config="dandi", + config=load_config(filepath_or_keyword="dandi"), **payload, ) )