Skip to content

Commit 36358f0

Browse files
mgxdeffigies
authored andcommitted
FIX: Reflect sanitized changes from sdcflows
1 parent b399be7 commit 36358f0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fmriprep/workflows/base.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def init_single_subject_wf(subject_id: str):
692692
if len(set(suffices)) == 1 or (
693693
len(suffices) == 2 and all(suf in ('epi', 'bold', 'sbref') for suf in suffices)
694694
):
695-
wf_inputs = getattr(fmap_wf.inputs, f'in_{estimator.bids_id}')
695+
wf_inputs = getattr(fmap_wf.inputs, f'in_{estimator.sanitized_id}')
696696
wf_inputs.in_data = [str(s.path) for s in estimator.sources]
697697
wf_inputs.metadata = [s.metadata for s in estimator.sources]
698698
else:
@@ -710,7 +710,7 @@ def init_single_subject_wf(subject_id: str):
710710
debug=config.execution.sloppy,
711711
auto_bold_nss=True,
712712
t1w_inversion=False,
713-
name=f'syn_preprocessing_{estimator.bids_id}',
713+
name=f'syn_preprocessing_{estimator.sanitized_id}',
714714
)
715715
syn_preprocessing_wf.inputs.inputnode.in_epis = sources
716716
syn_preprocessing_wf.inputs.inputnode.in_meta = source_meta
@@ -724,11 +724,11 @@ def init_single_subject_wf(subject_id: str):
724724
('std2anat_xfm', 'inputnode.std2anat_xfm'),
725725
]),
726726
(syn_preprocessing_wf, fmap_wf, [
727-
('outputnode.epi_ref', f'in_{estimator.bids_id}.epi_ref'),
728-
('outputnode.epi_mask', f'in_{estimator.bids_id}.epi_mask'),
729-
('outputnode.anat_ref', f'in_{estimator.bids_id}.anat_ref'),
730-
('outputnode.anat_mask', f'in_{estimator.bids_id}.anat_mask'),
731-
('outputnode.sd_prior', f'in_{estimator.bids_id}.sd_prior'),
727+
('outputnode.epi_ref', f'in_{estimator.sanitized_id}.epi_ref'),
728+
('outputnode.epi_mask', f'in_{estimator.sanitized_id}.epi_mask'),
729+
('outputnode.anat_ref', f'in_{estimator.sanitized_id}.anat_ref'),
730+
('outputnode.anat_mask', f'in_{estimator.sanitized}.anat_mask'),
731+
('outputnode.sd_prior', f'in_{estimator.sanitized_id}.sd_prior'),
732732
]),
733733
]) # fmt:skip
734734

0 commit comments

Comments
 (0)