From 163d099b955f630736b3961b9e0da9e76bfc4973 Mon Sep 17 00:00:00 2001 From: "arnaud.bore" Date: Sun, 16 Jul 2023 13:20:52 -0400 Subject: [PATCH] typo_src_file_dst_file --- dcm2bids/dcm2bids_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dcm2bids/dcm2bids_gen.py b/dcm2bids/dcm2bids_gen.py index f3b42801..60a05c40 100644 --- a/dcm2bids/dcm2bids_gen.py +++ b/dcm2bids/dcm2bids_gen.py @@ -162,8 +162,8 @@ def move(self, acquisition, idList, post_op): for curr_post_op in post_op: if acquisition.datatype in curr_post_op['datatype'] or 'any' in curr_post_op['datatype']: if acquisition.suffix in curr_post_op['suffix'] or '_any' in curr_post_op['suffix']: - cmd = curr_post_op['cmd'].replace('srcFile', str(srcFile)) - cmd = cmd.replace('dstFile', str(dstFile)) + cmd = curr_post_op['cmd'].replace('src_file', str(srcFile)) + cmd = cmd.replace('dst_file', str(dstFile)) run_shell_command(cmd.split()) continue