Skip to content

Commit

Permalink
filter out warnings when getting namespaces in test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince authored Sep 6, 2024
1 parent 44ef205 commit d55901c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d55901c

Please sign in to comment.