File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ def fixup_subjectid(subjectid):
918
918
"""Just in case someone managed to miss a zero or added an extra one"""
919
919
# make it lowercase
920
920
subjectid = subjectid .lower ()
921
- reg = re .match ("sid0*(\d+)$" , subjectid )
921
+ reg = re .match (r "sid0*(\d+)$" , subjectid )
922
922
if not reg :
923
923
# some completely other pattern
924
924
# just filter out possible _- in it
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def test_fix_dbic_protocol():
114
114
seqinfos = [seq1 , seq2 ]
115
115
protocols2fix = {
116
116
md5sum ('mystudy' ):
117
- [('scout_run\+' , 'THESCOUT-runX' ),
117
+ [(r 'scout_run\+' , 'THESCOUT-runX' ),
118
118
('run-life[0-9]' , 'run+_task-life' )],
119
119
re .compile ('^my.*' ):
120
120
[('THESCOUT-runX' , 'THESCOUT' )],
@@ -221,4 +221,4 @@ def test_parse_series_spec():
221
221
{'datatype' : 'func' , 'session' : '{date}' }
222
222
223
223
assert pdpn ("fmap_dir-AP_ses-01" ) == \
224
- {'datatype' : 'fmap' , 'session' : '01' , 'dir' : 'AP' }
224
+ {'datatype' : 'fmap' , 'session' : '01' , 'dir' : 'AP' }
You can’t perform that action at this time.
0 commit comments