From 813b407efdbc46855d3bd772045964d081cf265e Mon Sep 17 00:00:00 2001 From: rly Date: Tue, 19 Dec 2023 01:36:48 -0800 Subject: [PATCH] Fix pynwb.validate call --- src/nwbinspector/nwbinspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nwbinspector/nwbinspector.py b/src/nwbinspector/nwbinspector.py index e7082b366..64f685431 100644 --- a/src/nwbinspector/nwbinspector.py +++ b/src/nwbinspector/nwbinspector.py @@ -551,7 +551,7 @@ def inspect_nwbfile( filterwarnings(action="ignore", message="Ignoring cached namespace .*") if not skip_validate: - validation_error_list = pynwb.validate(paths=[nwbfile_path], driver=driver) + validation_error_list, _ = pynwb.validate(paths=[nwbfile_path], driver=driver) for validation_namespace_errors in validation_error_list: for validation_error in validation_namespace_errors: yield InspectorMessage(