@@ -169,7 +169,7 @@ def test_parse_series_spec():
169
169
170
170
assert pdpn ("bids_func-bold" ) == \
171
171
pdpn ("func-bold" ) == \
172
- {'seqtype ' : 'func' , 'seqtype_label ' : 'bold' }
172
+ {'datatype ' : 'func' , 'datatype_suffix ' : 'bold' }
173
173
174
174
# pdpn("bids_func_ses+_task-boo_run+") == \
175
175
# order and PREFIX: should not matter, as well as trailing spaces
@@ -179,8 +179,8 @@ def test_parse_series_spec():
179
179
pdpn ("WIP func_ses+_task-boo_run+" ) == \
180
180
pdpn ("bids_func_ses+_run+_task-boo" ) == \
181
181
{
182
- 'seqtype ' : 'func' ,
183
- # 'seqtype_label ': 'bold',
182
+ 'datatype ' : 'func' ,
183
+ # 'datatype_suffix ': 'bold',
184
184
'session' : '+' ,
185
185
'run' : '+' ,
186
186
'task' : 'boo' ,
@@ -191,7 +191,7 @@ def test_parse_series_spec():
191
191
pdpn ("bids_func-pace_ses-1_run-2_task-boo_acq-bu_bids-please__therest" ) == \
192
192
pdpn ("func-pace_ses-1_task-boo_acq-bu_bids-please_run-2" ) == \
193
193
{
194
- 'seqtype ' : 'func' , 'seqtype_label ' : 'pace' ,
194
+ 'datatype ' : 'func' , 'datatype_suffix ' : 'pace' ,
195
195
'session' : '1' ,
196
196
'run' : '2' ,
197
197
'task' : 'boo' ,
@@ -201,24 +201,24 @@ def test_parse_series_spec():
201
201
202
202
assert pdpn ("bids_anat-scout_ses+" ) == \
203
203
{
204
- 'seqtype ' : 'anat' ,
205
- 'seqtype_label ' : 'scout' ,
204
+ 'datatype ' : 'anat' ,
205
+ 'datatype_suffix ' : 'scout' ,
206
206
'session' : '+' ,
207
207
}
208
208
209
209
assert pdpn ("anat_T1w_acq-MPRAGE_run+" ) == \
210
210
{
211
- 'seqtype ' : 'anat' ,
211
+ 'datatype ' : 'anat' ,
212
212
'run' : '+' ,
213
213
'acq' : 'MPRAGE' ,
214
- 'seqtype_label ' : 'T1w'
214
+ 'datatype_suffix ' : 'T1w'
215
215
}
216
216
217
217
# Check for currently used {date}, which should also should get adjusted
218
218
# from (date) since Philips does not allow for {}
219
219
assert pdpn ("func_ses-{date}" ) == \
220
220
pdpn ("func_ses-(date)" ) == \
221
- {'seqtype ' : 'func' , 'session' : '{date}' }
221
+ {'datatype ' : 'func' , 'session' : '{date}' }
222
222
223
223
assert pdpn ("fmap_dir-AP_ses-01" ) == \
224
- {'seqtype ' : 'fmap' , 'session' : '01' , 'dir' : 'AP' }
224
+ {'datatype ' : 'fmap' , 'session' : '01' , 'dir' : 'AP' }
0 commit comments