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