Skip to content

Commit 4c36fb4

Browse files
committed
ENH(TST): basic testing for WIP stripping and (date)->{date} tune up
1 parent 9825d92 commit 4c36fb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

heudiconv/heuristics/test_reproin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def test_parse_series_spec():
166166
assert \
167167
pdpn(" PREFIX:bids_func_ses+_task-boo_run+ ") == \
168168
pdpn("PREFIX:bids_func_ses+_task-boo_run+") == \
169+
pdpn("WIP func_ses+_task-boo_run+") == \
169170
pdpn("bids_func_ses+_run+_task-boo") == \
170171
{
171172
'seqtype': 'func',
@@ -202,3 +203,9 @@ def test_parse_series_spec():
202203
'acq': 'MPRAGE',
203204
'seqtype_label': 'T1w'
204205
}
206+
207+
# Check for currently used {date}, which should also should get adjusted
208+
# from (date) since Philips does not allow for {}
209+
assert pdpn("func_ses-{date}") == \
210+
pdpn("func_ses-(date)") == \
211+
{'seqtype': 'func', 'session': '{date}'}

0 commit comments

Comments
 (0)