Skip to content

Commit bd67325

Browse files
authored
Merge pull request #495 from nipreps/fix/sanitize-out
FIX: Use the sanitized id when naming through nipype
2 parents b4a01f6 + f28aaf0 commit bd67325

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sdcflows/transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ def apply(
498498
pe_info.append(
499499
(
500500
pe_axis,
501-
# Displacements are reversed if either is true (after ensuring positive cosines)
501+
# Displacements are reversed if either is true
502+
# (after ensuring positive cosines)
502503
-ro_time[volid] if (axis_flip ^ pe_flip) else ro_time[volid],
503504
)
504505
)

sdcflows/workflows/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def init_fmap_preproc_wf(
130130
source_files = [str(f.path) for f in estimator.sources if f.suffix not in ('T1w', 'T2w')]
131131

132132
out_map = pe.Node(
133-
niu.IdentityInterface(fields=out_fields), name=f'out_{estimator.bids_id}'
133+
niu.IdentityInterface(fields=out_fields), name=f'out_{estimator.sanitized_id}'
134134
)
135135
out_map.inputs.fmap_id = estimator.bids_id
136136

sdcflows/workflows/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_fmap_wf(tmpdir, workdir, outdir, bids_layouts, dataset, subject):
5757
if estimator.method != fm.EstimatorType.PEPOLAR:
5858
continue
5959

60-
inputnode = wf.get_node(f'in_{estimator.bids_id}')
60+
inputnode = wf.get_node(f'in_{estimator.sanitized_id}')
6161
inputnode.inputs.in_data = [str(f.path) for f in estimator.sources]
6262
inputnode.inputs.metadata = [f.metadata for f in estimator.sources]
6363

0 commit comments

Comments
 (0)