We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2456489 commit 4f78e74Copy full SHA for 4f78e74
sdcflows/workflows/outputs.py
@@ -21,6 +21,8 @@
21
# https://www.nipreps.org/community/licensing/
22
#
23
"""Writing out outputs."""
24
+import re
25
+
26
from nipype.pipeline import engine as pe
27
from nipype.interfaces import utility as niu
28
from niworkflows.interfaces.bids import DerivativesDataSink as _DDS
@@ -156,7 +158,7 @@ def init_fmap_derivatives_wf(
156
158
"""
157
159
custom_entities = custom_entities or {}
160
if bids_fmap_id:
- custom_entities["fmapid"] = bids_fmap_id.replace("_", "")
161
+ custom_entities["fmapid"] = re.sub(r'[^a-zA-Z0-9]', '', bids_fmap_id)
162
163
workflow = pe.Workflow(name=name)
164
inputnode = pe.Node(
0 commit comments