Skip to content

Commit b7aa992

Browse files
committed
ENH: Add morphometric suffixes to pattern matching
1 parent e5fc210 commit b7aa992

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

niworkflows/interfaces/surf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,19 @@ class Path2BIDS(SimpleInterface):
154154
suffix = smoothwm
155155
<BLANKLINE>
156156
157+
>>> Path2BIDS(in_file='lh.sulc_converted.gii').run().outputs
158+
<BLANKLINE>
159+
extension = .gii
160+
hemi = L
161+
suffix = sulc
162+
<BLANKLINE>
157163
"""
158164

159165
input_spec = _Path2BIDSInputSpec
160166
output_spec = _Path2BIDSOutputSpec
161167
_pattern = re.compile(
162168
r"(?P<hemi>[lr])h.(?P<suffix>(wm|smoothwm|pial|midthickness|"
163-
r"inflated|vinflated|sphere|flat))[\w\d_-]*(?P<extprefix>\.\w+)?"
169+
r"inflated|vinflated|sphere|flat|sulc|curv|thickness))[\w\d_-]*(?P<extprefix>\.\w+)?"
164170
)
165171
_excluded = ("extprefix",)
166172

0 commit comments

Comments
 (0)