Skip to content

Commit a18cdb2

Browse files
tsaloeffigies
authored andcommitted
Update test.
1 parent 6fcd8e4 commit a18cdb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdcflows/workflows/tests/test_base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"""Test the base workflow."""
2424
from pathlib import Path
2525
import os
26+
import re
27+
2628
import pytest
29+
2730
from sdcflows import fieldmaps as fm
2831
from sdcflows.utils.wrangler import find_estimators
2932
from sdcflows.workflows.base import init_fmap_preproc_wf
@@ -55,7 +58,8 @@ def test_fmap_wf(tmpdir, workdir, outdir, bids_layouts, dataset, subject):
5558
if estimator.method != fm.EstimatorType.PEPOLAR:
5659
continue
5760

58-
inputnode = wf.get_node(f"in_{estimator.bids_id}")
61+
clean_bids_id = re.sub(r'[^a-zA-Z0-9]', '', estimator.bids_id)
62+
inputnode = wf.get_node(f"in_{clean_bids_id}")
5963
inputnode.inputs.in_data = [str(f.path) for f in estimator.sources]
6064
inputnode.inputs.metadata = [f.metadata for f in estimator.sources]
6165

0 commit comments

Comments
 (0)