diff --git a/shanoir2bids.py b/shanoir2bids.py index f591b78..15e061e 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,7 @@ def download_subject(self, subject_to_search): for far in self.list_fars: bids_subject_id.replace(far[K_FIND], far[K_REPLACE]) + bids_seq_session = None # Loop on each sequence defined in the dictionary