Skip to content

Commit 0445396

Browse files
authored
Merge pull request #161 from Remi-Gau/remi-refactor
[MISC] refactoring
2 parents 4579ed8 + 1b6b026 commit 0445396

File tree

4 files changed

+104
-113
lines changed

4 files changed

+104
-113
lines changed

miss_hit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ copyright_entity: "CPP_BIDS developers"
66

77
# metrics limit for the code quality (https://florianschanda.github.io/miss_hit/metrics.html)
88
metric "cnest": limit 4
9-
metric "file_length": limit 500
9+
metric "file_length": limit 550
1010
metric "cyc": limit 15
1111
metric "parameters": limit 6

src/createFilename.m

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,20 @@
4747

4848
cfg = setFilenames(cfg);
4949

50-
talkToMe(cfg);
50+
talkToMe(cfg, sprintf('\nData will be saved in this directory:\n\t%s\n', ...
51+
fullfile(cfg.dir.outputSubject, cfg.fileName.modality)));
52+
53+
talkToMe(cfg, sprintf('\nData will be saved in this file:\n\t%s\n', cfg.fileName.events));
54+
55+
if cfg.eyeTracker.do
56+
57+
talkToMe(cfg, sprintf('\nEyetracking data will be saved in this directory:\n\t%s\n', ...
58+
fullfile(cfg.dir.outputSubject, 'eyetracker')));
59+
60+
talkToMe(cfg, sprintf('\nEyetracking data will be saved in this file:\n\t%s\n', ...
61+
cfg.fileName.eyetracker));
62+
63+
end
5164

5265
cfg = orderfields(cfg);
5366
cfg.fileName = orderfields(cfg.fileName);
@@ -214,27 +227,3 @@
214227
end
215228

216229
end
217-
218-
function talkToMe(cfg)
219-
220-
if cfg.verbose > 0
221-
222-
fprintf(1, '\nData will be saved in this directory:\n\t%s\n', ...
223-
fullfile(cfg.dir.outputSubject, cfg.fileName.modality));
224-
225-
fprintf(1, '\nData will be saved in this file:\n\t%s\n', ...
226-
cfg.fileName.events);
227-
228-
if cfg.eyeTracker.do
229-
230-
fprintf(1, '\nEyetracking data will be saved in this directory:\n\t%s\n', ...
231-
fullfile(cfg.dir.outputSubject, 'eyetracker'));
232-
233-
fprintf(1, '\nEyetracking data will be saved in this file:\n\t%s\n', ...
234-
cfg.fileName.eyetracker);
235-
236-
end
237-
238-
end
239-
240-
end

0 commit comments

Comments
 (0)