Skip to content

Commit fc32150

Browse files
committed
mh fix
1 parent 1cf568d commit fc32150

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

src/convertSourceToRaw.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ function convertSourceToRaw(cfg)
1616

1717
% add dummy README and CHANGE file
1818
copyfile(fullfile( ...
19-
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', 'README'), ...
19+
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', ...
20+
'README'), ...
2021
sourceDir);
2122
copyfile(fullfile( ...
22-
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', 'CHANGES'), ...
23+
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', ...
24+
'CHANGES'), ...
2325
sourceDir);
2426
copyfile(fullfile( ...
25-
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', '.bidsignore'), ...
27+
fileparts(mfilename('fullpath')), '..', 'manualTests', 'dummyData', ...
28+
'.bidsignore'), ...
2629
sourceDir);
2730

2831
copyfile(sourceDir, rawDir);

src/createDataDictionary.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function createDataDictionary(cfg, logFile)
99

1010
opts.Indent = ' ';
1111

12-
fileName = strrep(logFile.filename, '.tsv', '.json');
12+
fileName = strrep(logFile(1).filename, '.tsv', '.json');
1313

1414
fileName = fullfile( ...
1515
cfg.dir.outputSubject, ...

src/createJson.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function errorCreateJson(identifier, varargin)
118118
'or a structure (extraInfo)'];
119119
case 'wrongModalityInput'
120120
errorStruct.message = sprintf(['The given modality is not valid: %s.\n', ...
121-
'Only the following string are accepted: beh, func, eeg, ieeg, meg'], ...
121+
'Only the following string are accepted: ' ...
122+
'beh, func, eeg, ieeg, meg'], ...
122123
varargin{1});
123124

124125
end

src/subfun/removeAllDateSuffix.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function removeAllDateSuffix(rawDir, subjName, sesName)
2020

2121
for iLabel = 1:numel(labels)
2222
filenames = file_utils('List', subjectPath, ...
23-
sprintf('^%s.*_task-.*_%s_date-.*$', subjName, labels{iLabel}));
23+
sprintf('^%s.*_task-.*_%s_date-.*$', ...
24+
subjName, labels{iLabel}));
2425

2526
removeDateSuffix(filenames, subjectPath);
2627
end

tests/test_createFilename.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ function test_createFilenameMriEyetracker()
5555

5656
baseFilename = 'sub-001_ses-001_task-testTask';
5757

58-
eventFilename = ['sub-001_ses-001_task-testTask_run-001_events_date-' ...
58+
eventFilename = [baseFilename '_run-001_events_date-' ...
5959
cfg.fileName.date '.tsv'];
6060

6161
eyetrackerFilename = [ ...
62-
'sub-001_ses-001_task-testTask_run-001_recording-eyetracking_physio_date-' ...
62+
baseFilename '_run-001_recording-eyetracking_physio_date-' ...
6363
cfg.fileName.date '.edf'];
6464

6565
%% tests

0 commit comments

Comments
 (0)