|
1 | 1 | function sliceOrder = getAndCheckSliceOrder(BIDS, opt, filter) |
2 | 2 | % |
3 | 3 | % Get the slice order information from the BIDS metadata. |
4 | | - % If inconsistent slice timing is found across files it returns empty and |
5 | | - % throws a warning. |
| 4 | + % If inconsistent slice timing is found across files |
| 5 | + % it throws an error. |
6 | 6 | % |
7 | 7 | % USAGE:: |
8 | 8 | % |
|
20 | 20 | % - :sliceOrder: a vector of the time when each slice was acquired in |
21 | 21 | % in a volume or indicating the order of acquisition of the slices. |
22 | 22 | % |
23 | | - % ``getAndCheckSliceOrder`` will try to read the ``opt`` structure for any relevant information |
24 | | - % about slice timing. |
25 | | - % If this is empty, it queries the BIDS dataset to ee if there is any |
26 | | - % consistent slice timing information for a given ``filter`` |
| 23 | + % ``getAndCheckSliceOrder`` will try to read the ``opt`` structure |
| 24 | + % for any relevant information about slice timing. |
| 25 | + % If this is empty, it queries the BIDS dataset to see if there is any |
| 26 | + % consistent slice timing information for a given ``filter``. |
27 | 27 | % |
28 | 28 | % See also: bidsSTC, setBatchSTC |
29 | 29 | % |
|
57 | 57 |
|
58 | 58 | sliceOrder = []; |
59 | 59 |
|
60 | | - msg = sprintf('inconsistent slice timing found for filter:\n%s.\n\n', ... |
| 60 | + msg = sprintf(['Inconsistent slice timing found for filter:\n%s.\n\n', ... |
| 61 | + 'Number of slice per volume seems different across bold files.'], ... |
61 | 62 | bids.internal.create_unordered_list(filter)); |
62 | | - id = 'inconsistentSliceTiming'; |
63 | | - logger('WARNING', msg, 'id', id, 'filename', mfilename(), 'options', opt); |
| 63 | + id = 'inconsistentSliceTimingLength'; |
| 64 | + logger('ERROR', msg, 'id', id, 'filename', mfilename(), 'options', opt); |
64 | 65 |
|
65 | 66 | return |
66 | 67 |
|
|
76 | 77 |
|
77 | 78 | sliceOrder = []; |
78 | 79 |
|
79 | | - wng = sprintf('inconsistent slice timing found for filter:\n%s.\n\n', ... |
| 80 | + msg = sprintf('Inconsistent slice timing found for filter:\n%s.\n\n', ... |
80 | 81 | bids.internal.create_unordered_list(filter)); |
81 | | - id = 'inconsistentSliceTiming'; |
| 82 | + id = 'inconsistentSliceTimingValues'; |
82 | 83 | logger('WARNING', msg, 'id', id, 'filename', mfilename(), 'options', opt); |
83 | 84 |
|
84 | 85 | return |
|
0 commit comments