From 45084e1e9ad7b2aab4356ea2ca472c512a745b28 Mon Sep 17 00:00:00 2001 From: Alexandre Pron Date: Mon, 18 Nov 2024 12:06:29 +0100 Subject: [PATCH 1/2] [BF]:add again K_JSON_FIND_AND_REPLACE to LIST_AUTHORIZED_KEYS_JSON --- shanoir2bids.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shanoir2bids.py b/shanoir2bids.py index f591b78..2b5a4e6 100755 --- a/shanoir2bids.py +++ b/shanoir2bids.py @@ -24,8 +24,6 @@ from dotenv import load_dotenv from heudiconv.main import workflow -# import loggger used in heudiconv workflow -from heudiconv.main import lgr import bids_validator # Load environment variables @@ -61,6 +59,7 @@ def banner_msg(msg): LIST_AUTHORIZED_KEYS_JSON = LIST_MANDATORY_KEYS_JSON + [ K_DCM2NIIX_PATH, K_DCM2NIIX_OPTS, + K_JSON_FIND_AND_REPLACE, K_JSON_DATE_FROM, K_JSON_DATE_TO, K_JSON_SESSION, @@ -494,6 +493,8 @@ def download_subject(self, subject_to_search): for far in self.list_fars: bids_subject_id.replace(far[K_FIND], far[K_REPLACE]) + print(bids_subject_id) + bids_seq_session = None # Loop on each sequence defined in the dictionary From 125572bf6d88b75b04ec6c3c9485335e9a2fbda7 Mon Sep 17 00:00:00 2001 From: Alexandre Pron Date: Mon, 18 Nov 2024 12:08:21 +0100 Subject: [PATCH 2/2] [LINT]: removed print --- shanoir2bids.py | 1 - 1 file changed, 1 deletion(-) diff --git a/shanoir2bids.py b/shanoir2bids.py index 2b5a4e6..15e061e 100755 --- a/shanoir2bids.py +++ b/shanoir2bids.py @@ -493,7 +493,6 @@ def download_subject(self, subject_to_search): for far in self.list_fars: bids_subject_id.replace(far[K_FIND], far[K_REPLACE]) - print(bids_subject_id) bids_seq_session = None