Skip to content

Commit

Permalink
create output folder and remove extra print
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Feb 7, 2024
1 parent 79a1ad6 commit c9c62d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions bids/ext/reports/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ def cli(args: Sequence[str] = None, namespace=None) -> None:
if not common_patterns:
LOGGER.warning("No common patterns found.")
else:
output_dir.mkdir(parents=True, exist_ok=True)
with open(output_dir / "report.txt", "w") as f:
f.write(str(counter.most_common()[0][0]))
1 change: 0 additions & 1 deletion bids/ext/reports/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def institution_info(files: list[BIDSFile]):
first_file = files[0]
metadata = first_file.get_metadata()
if metadata.get("InstitutionName"):
print(metadata.get("InstitutionName"))
return templates.institution_info(metadata)

Check warning on line 23 in bids/ext/reports/parsing.py

View check run for this annotation

Codecov / codecov/patch

bids/ext/reports/parsing.py#L23

Added line #L23 was not covered by tests
else:
return ""
Expand Down

0 comments on commit c9c62d2

Please sign in to comment.