diff --git a/bids/ext/reports/cli.py b/bids/ext/reports/cli.py index 2cc88c8..d673d09 100644 --- a/bids/ext/reports/cli.py +++ b/bids/ext/reports/cli.py @@ -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])) diff --git a/bids/ext/reports/parsing.py b/bids/ext/reports/parsing.py index b59522b..780b541 100644 --- a/bids/ext/reports/parsing.py +++ b/bids/ext/reports/parsing.py @@ -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) else: return ""