From cb73eb1b03969a6fb0df1bb80285b984cd62611a Mon Sep 17 00:00:00 2001 From: Tien Tong Date: Thu, 31 Oct 2024 10:10:04 -0400 Subject: [PATCH 1/2] logger not printing metadata so use print instead --- cubids/workflows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cubids/workflows.py b/cubids/workflows.py index e01ccc78..1fc29e53 100644 --- a/cubids/workflows.py +++ b/cubids/workflows.py @@ -895,7 +895,8 @@ def print_metadata_fields(bids_dir, container): if container is None: bod = CuBIDS(data_root=str(bids_dir), use_datalad=False) fields = bod.get_all_metadata_fields() - logger.info("\n".join(fields)) + print("\n".join(fields)) # logger not printing + # logger.info("\n".join(fields)) sys.exit(0) # Run it through a container From b322dd0f9d7c3334eaa4a725ac4189694bb36425 Mon Sep 17 00:00:00 2001 From: Tien Tong Date: Thu, 31 Oct 2024 10:19:46 -0400 Subject: [PATCH 2/2] fix linting issue --- cubids/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubids/workflows.py b/cubids/workflows.py index 1fc29e53..6cbc1e42 100644 --- a/cubids/workflows.py +++ b/cubids/workflows.py @@ -895,7 +895,7 @@ def print_metadata_fields(bids_dir, container): if container is None: bod = CuBIDS(data_root=str(bids_dir), use_datalad=False) fields = bod.get_all_metadata_fields() - print("\n".join(fields)) # logger not printing + print("\n".join(fields)) # logger not printing # logger.info("\n".join(fields)) sys.exit(0)