From d55901cfb3712fc0e93c5c140f981be6f5e83329 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:35:51 -0700 Subject: [PATCH] filter out warnings when getting namespaces in test.py --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 5bddb7c7d..3b8ead274 100644 --- a/test.py +++ b/test.py @@ -179,7 +179,9 @@ def get_namespaces(nwbfile): if comp.returncode != 0: return [] - return comp.stdout.split() + output_lines = comp.stdout.split('\n') + filtered_output = [line for line in output_lines if not re.search(r'warning', line, re.IGNORECASE) and line != ''] + return filtered_output namespaces = get_namespaces(nwb)