Skip to content

Commit 37a1da2

Browse files
authored
Merge pull request #52 from cpp-lln-lab/remi-localizer_update
fixes after testing on visual localizer
2 parents b01eb2e + 01862b8 commit 37a1da2

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

checkCppBidsDependencies.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
addpath(fullfile(pth, 'lib', 'bids-matlab'));
66
addpath(fullfile(pth, 'lib', 'utils'));
77
addpath(fullfile(pth, 'subfun'));
8+
9+
printCredits()
810

911
end

printCredits.m

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
function printCredits()
2+
3+
version = '0.0.1';
4+
5+
contributors = { ...
6+
'Rémi Gau', ...
7+
'Marco Barilari', ...
8+
'Ceren Battal'};
9+
10+
% DOI_URL = 'https://doi.org/10.5281/zenodo.3554331.';
11+
12+
repoURL = 'https://github.com/cpp-lln-lab/CPP_BIDS';
13+
14+
disp('___________________________________________________');
15+
disp('___________________________________________________');
16+
disp(' ');
17+
disp(' ___ ___ ___ ___ ___ ___ ___ ');
18+
disp(' / __| _ \ _ \ | _ )_ _| \/ __|');
19+
disp(' | (__| _/ _/ | _ \| || |) \__ \');
20+
disp(' \___|_| |_| |___/___|___/|___/');
21+
disp(' ');
22+
23+
24+
splash = 'Thank you for using the CPP BIDS - version %s. ';
25+
fprintf(splash, version);
26+
fprintf('\n\n');
27+
28+
fprintf('Current list of contributors includes:\n');
29+
for iCont = 1:numel(contributors)
30+
fprintf(' %s\n', contributors{iCont});
31+
end
32+
fprintf('\b\n\n');
33+
34+
% fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL)
35+
36+
fprintf('For bug report, suggestions or contributions see: \n %s\n\n', repoURL);
37+
38+
disp('___________________________________________________');
39+
disp('___________________________________________________');
40+
41+
fprintf('\n\n');
42+
43+
end

saveEventsFile.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@
8787
duration = logFile(iEvent).duration;
8888
trial_type = logFile(iEvent).trial_type;
8989

90-
if any(isnan([onset trial_type])) || ...
91-
any(isempty([onset trial_type])) || ...
92-
any(strcmp({onset, trial_type}, 'n/a'))
90+
if isnan(onset) || ischar(onset) || any(isempty({onset trial_type})) || ...
91+
strcmp(trial_type, 'n/a')
9392

9493
warning('\nSkipping saving this event.\n onset: %f \n trial_type: %s\n', ...
9594
onset, ...

0 commit comments

Comments
 (0)