From 422caa6332c4f28412086931c27da88268aa1a04 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Sat, 25 Jul 2020 11:43:34 +0200 Subject: [PATCH 1/3] fixes after testing on visual localizer --- saveEventsFile.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/saveEventsFile.m b/saveEventsFile.m index 278d0aa5..a15daccb 100644 --- a/saveEventsFile.m +++ b/saveEventsFile.m @@ -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, ... From 62f00709cac299fccce2b889644d017b7cf97d98 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Sat, 25 Jul 2020 12:09:09 +0200 Subject: [PATCH 2/3] add credits --- checkCppBidsDependencies.m | 2 ++ printCredits.m | 43 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 printCredits.m diff --git a/checkCppBidsDependencies.m b/checkCppBidsDependencies.m index dc878448..ddd1c46c 100644 --- a/checkCppBidsDependencies.m +++ b/checkCppBidsDependencies.m @@ -5,5 +5,7 @@ addpath(fullfile(pth, 'lib', 'bids-matlab')); addpath(fullfile(pth, 'lib', 'utils')); addpath(fullfile(pth, 'subfun')); + + printCredits() end diff --git a/printCredits.m b/printCredits.m new file mode 100644 index 00000000..853cf66a --- /dev/null +++ b/printCredits.m @@ -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 From 01862b8cbf94db7582a9ba59b91f91f72dcd7057 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Sat, 25 Jul 2020 12:12:35 +0200 Subject: [PATCH 3/3] center credits --- printCredits.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/printCredits.m b/printCredits.m index 853cf66a..febf84d9 100644 --- a/printCredits.m +++ b/printCredits.m @@ -13,12 +13,12 @@ function printCredits() disp('___________________________________________________'); disp('___________________________________________________'); - disp(' '); - disp(' ___ ___ ___ ___ ___ ___ ___ '); - disp(' / __| _ \ _ \ | _ )_ _| \/ __|'); - disp('| (__| _/ _/ | _ \| || |) \__ \'); - disp(' \___|_| |_| |___/___|___/|___/'); - disp(' '); + disp(' '); + disp(' ___ ___ ___ ___ ___ ___ ___ '); + disp(' / __| _ \ _ \ | _ )_ _| \/ __|'); + disp(' | (__| _/ _/ | _ \| || |) \__ \'); + disp(' \___|_| |_| |___/___|___/|___/'); + disp(' '); splash = 'Thank you for using the CPP BIDS - version %s. ';