Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo authored and effigies committed May 8, 2024
1 parent 6fcd8e4 commit a18cdb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdcflows/workflows/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit a18cdb2

Please sign in to comment.