From a18cdb2d8fcb9129ff5869f991233aec09e094eb Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 2 Apr 2024 08:39:26 -0400 Subject: [PATCH] Update test. --- sdcflows/workflows/tests/test_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdcflows/workflows/tests/test_base.py b/sdcflows/workflows/tests/test_base.py index b31222fecc..ac782a0bc0 100644 --- a/sdcflows/workflows/tests/test_base.py +++ b/sdcflows/workflows/tests/test_base.py @@ -23,7 +23,10 @@ """Test the base workflow.""" from pathlib import Path import os +import re + import pytest + from sdcflows import fieldmaps as fm from sdcflows.utils.wrangler import find_estimators from sdcflows.workflows.base import init_fmap_preproc_wf @@ -55,7 +58,8 @@ def test_fmap_wf(tmpdir, workdir, outdir, bids_layouts, dataset, subject): if estimator.method != fm.EstimatorType.PEPOLAR: continue - inputnode = wf.get_node(f"in_{estimator.bids_id}") + clean_bids_id = re.sub(r'[^a-zA-Z0-9]', '', estimator.bids_id) + inputnode = wf.get_node(f"in_{clean_bids_id}") inputnode.inputs.in_data = [str(f.path) for f in estimator.sources] inputnode.inputs.metadata = [f.metadata for f in estimator.sources]