From d949c6ef8c5b91ebe4fc056dd0682052280bfb6b Mon Sep 17 00:00:00 2001 From: Alexandre Pron Date: Mon, 18 Nov 2024 12:24:50 +0100 Subject: [PATCH] [BF]: modified find and replace statement so that effect is applied --- shanoir2bids.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shanoir2bids.py b/shanoir2bids.py index 15e061e..5e08d26 100755 --- a/shanoir2bids.py +++ b/shanoir2bids.py @@ -491,8 +491,7 @@ def download_subject(self, subject_to_search): # BIDS subject id (search and replace) bids_subject_id = subject_to_search for far in self.list_fars: - bids_subject_id.replace(far[K_FIND], far[K_REPLACE]) - + bids_subject_id = bids_subject_id.replace(far[K_FIND], far[K_REPLACE]) bids_seq_session = None