Skip to content

Commit

Permalink
fix upper level
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Apr 6, 2024
1 parent 15b5b4c commit eb3907c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/nwbinspector/nwbinspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,22 +582,14 @@ def inspect_nwbfile(
try:
in_memory_nwbfile = robust_s3_read(command=io.read, max_retries=max_retries)

per_nwbfile_inspection = inspect_nwbfile_object(
for inspector_message in inspect_nwbfile_object(
nwbfile_object=in_memory_nwbfile,
checks=checks,
config=config,
ignore=ignore,
select=select,
importance_threshold=importance_threshold,
)
if progress_bar_class is not None:
per_nwbfile_inspection_progress = progress_bar_class(
iterable=per_nwbfile_inspection, total=len(checks), **progress_bar_options
)
else:
per_nwbfile_inspection_progress = per_nwbfile_inspection

for inspector_message in per_nwbfile_inspection_progress:
):
inspector_message.file_path = nwbfile_path
yield inspector_message
except Exception as ex:
Expand Down

0 comments on commit eb3907c

Please sign in to comment.