Skip to content

Commit

Permalink
🐛 Fix template bug
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kenneally committed Sep 22, 2023
1 parent 27a4505 commit 567b5d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CPAC/pipeline/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def back_propogate_template_name(self, wf, resource_idx: str, json_info: dict,
if self.check_rpool('template'):
node, out = self.get_data('template')
wf.connect(node, out, id_string, 'template_desc')
if 'Template' in json_info:
elif 'Template' in json_info:
id_string.inputs.template_desc = json_info['Template']
elif ('template' in resource_idx and
len(json_info.get('CpacProvenance', [])) > 1):
Expand Down Expand Up @@ -1851,7 +1851,6 @@ def ingress_output_dir(wf, cfg, rpool, unique_id, data_paths, part_id, ses_id, c

if ('template' in data_label and not json_info['Template'] == \
cfg.pipeline_setup['outdir_ingress']['Template']):
print('not equal template', filepath)
continue
# Rename confounds to avoid confusion in nuisance regression
if data_label.endswith('desc-confounds_timeseries'):
Expand Down

0 comments on commit 567b5d8

Please sign in to comment.