From 42a894bdb3201006675a2882a7d55219241f7f27 Mon Sep 17 00:00:00 2001 From: Matt Cieslak Date: Wed, 29 Jan 2025 15:13:15 -0500 Subject: [PATCH] try --- cubids/config.py | 2 +- cubids/cubids.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cubids/config.py b/cubids/config.py index 45747d0e..f245df9b 100644 --- a/cubids/config.py +++ b/cubids/config.py @@ -19,7 +19,7 @@ def load_config(config_file): dict The configuration loaded from the YAML file. """ - if config_file is None: + if not config_file: config_file = Path(importlib.resources.files("cubids") / "data/config.yml") with config_file.open() as f: diff --git a/cubids/cubids.py b/cubids/cubids.py index a6c288c1..cfb50e1f 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -1020,7 +1020,7 @@ def get_param_groups_from_entity_set(self, entity_set): modality = mod.replace("/", "").replace("/", "") if modality == "": - print("Unusual Modality Detected") + print(f"Unusual Modality Detected: {filepath}") modality = "other" ret = _get_param_groups(