Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions checkCppBidsDependencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
addpath(fullfile(pth, 'lib', 'bids-matlab'));
addpath(fullfile(pth, 'lib', 'utils'));
addpath(fullfile(pth, 'subfun'));

printCredits()

end
43 changes: 43 additions & 0 deletions printCredits.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
function printCredits()

version = '0.0.1';

contributors = { ...
'Rémi Gau', ...
'Marco Barilari', ...
'Ceren Battal'};

% DOI_URL = 'https://doi.org/10.5281/zenodo.3554331.';

repoURL = 'https://github.com/cpp-lln-lab/CPP_BIDS';

disp('___________________________________________________');
disp('___________________________________________________');
disp(' ');
disp(' ___ ___ ___ ___ ___ ___ ___ ');
disp(' / __| _ \ _ \ | _ )_ _| \/ __|');
disp(' | (__| _/ _/ | _ \| || |) \__ \');
disp(' \___|_| |_| |___/___|___/|___/');
disp(' ');


splash = 'Thank you for using the CPP BIDS - version %s. ';
fprintf(splash, version);
fprintf('\n\n');

fprintf('Current list of contributors includes:\n');
for iCont = 1:numel(contributors)
fprintf(' %s\n', contributors{iCont});
end
fprintf('\b\n\n');

% fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL)

fprintf('For bug report, suggestions or contributions see: \n %s\n\n', repoURL);

disp('___________________________________________________');
disp('___________________________________________________');

fprintf('\n\n');

end
5 changes: 2 additions & 3 deletions saveEventsFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@
duration = logFile(iEvent).duration;
trial_type = logFile(iEvent).trial_type;

if any(isnan([onset trial_type])) || ...
any(isempty([onset trial_type])) || ...
any(strcmp({onset, trial_type}, 'n/a'))
if isnan(onset) || ischar(onset) || any(isempty({onset trial_type})) || ...
strcmp(trial_type, 'n/a')

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