@@ -44,9 +44,9 @@ class BIDSInfoOutputSpec(DynamicTraitedSpec):
4444 subject = traits .Str ()
4545 session = traits .Str ()
4646 task = traits .Str ()
47- acq = traits .Str ()
48- rec = traits .Str ()
49- run = traits .Str ()
47+ acquisition = traits .Str ()
48+ reconstruction = traits .Str ()
49+ run = traits .Int ()
5050 suffix = traits .Str ()
5151
5252
@@ -63,24 +63,54 @@ class BIDSInfo(SimpleInterface):
6363 >>> res = bids_info.run()
6464 >>> res.outputs
6565 <BLANKLINE>
66- acq = <undefined>
67- rec = <undefined>
66+ acquisition = <undefined>
67+ reconstruction = <undefined>
6868 run = <undefined>
6969 session = retest
7070 subject = 01
7171 suffix = bold
7272 task = covertverbgeneration
7373 <BLANKLINE>
7474
75+ >>> bids_info = BIDSInfo(bids_dir=str(datadir / 'ds054'), bids_validate=False)
76+ >>> bids_info.inputs.in_file = '''\
77+ sub-01/func/ses-retest/sub-01_ses-retest_task-covertverbgeneration_rec-MB_acq-AP_run-1_bold.nii.gz'''
78+ >>> res = bids_info.run()
79+ >>> res.outputs
80+ <BLANKLINE>
81+ acquisition = AP
82+ reconstruction = MB
83+ run = 1
84+ session = retest
85+ subject = 01
86+ suffix = bold
87+ task = covertverbgeneration
88+ <BLANKLINE>
89+
90+ >>> bids_info = BIDSInfo(bids_dir=str(datadir / 'ds054'), bids_validate=False)
91+ >>> bids_info.inputs.in_file = '''\
92+ sub-01/func/ses-retest/sub-01_ses-retest_task-covertverbgeneration_acq-AP_run-01_bold.nii.gz'''
93+ >>> res = bids_info.run()
94+ >>> res.outputs
95+ <BLANKLINE>
96+ acquisition = AP
97+ reconstruction = <undefined>
98+ run = 1
99+ session = retest
100+ subject = 01
101+ suffix = bold
102+ task = covertverbgeneration
103+ <BLANKLINE>
104+
75105 >>> bids_info = BIDSInfo(bids_validate=False)
76106 >>> bids_info.inputs.in_file = str(
77107 ... datadir / 'ds114' / 'sub-01' / 'ses-retest' /
78108 ... 'func' / 'sub-01_ses-retest_task-covertverbgeneration_bold.nii.gz')
79109 >>> res = bids_info.run()
80110 >>> res.outputs
81111 <BLANKLINE>
82- acq = <undefined>
83- rec = <undefined>
112+ acquisition = <undefined>
113+ reconstruction = <undefined>
84114 run = <undefined>
85115 session = retest
86116 subject = 01
@@ -94,8 +124,8 @@ class BIDSInfo(SimpleInterface):
94124 >>> res = bids_info.run()
95125 >>> res.outputs
96126 <BLANKLINE>
97- acq = <undefined>
98- rec = <undefined>
127+ acquisition = <undefined>
128+ reconstruction = <undefined>
99129 run = <undefined>
100130 session = retest
101131 subject = 01
@@ -111,8 +141,8 @@ class BIDSInfo(SimpleInterface):
111141 >>> res = bids_info.run()
112142 >>> res.outputs
113143 <BLANKLINE>
114- acq = <undefined>
115- rec = <undefined>
144+ acquisition = <undefined>
145+ reconstruction = <undefined>
116146 run = <undefined>
117147 session = retest
118148 subject = 01
0 commit comments