From 9493dc55d57c76c81b7376c63824331ee1f4dddb Mon Sep 17 00:00:00 2001 From: Ceren Date: Mon, 3 Aug 2020 13:50:37 +0100 Subject: [PATCH 1/3] waitForTrigger ceren adapt --- waitForTrigger.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waitForTrigger.m b/waitForTrigger.m index 54729fe..e1c59e3 100644 --- a/waitForTrigger.m +++ b/waitForTrigger.m @@ -27,7 +27,8 @@ function waitForTrigger(cfg, deviceNumber) if strcmpi(cfg.testingDevice, 'mri') - msg = 'Waiting for trigger...'; + msg = ['Experiment starting in ', ... + num2str(cfg.numTriggers - triggerCounter), '...']; talkToMe(cfg, msg); while triggerCounter < cfg.mri.triggerNb From c9e04f2ab4956fcc209d64324c9d981293b0acda Mon Sep 17 00:00:00 2001 From: Ceren Date: Mon, 3 Aug 2020 14:02:37 +0100 Subject: [PATCH 2/3] submodule more info --- README.md | 57 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 45fba69..209f622 100644 --- a/README.md +++ b/README.md @@ -73,14 +73,37 @@ cd CPP_PTB matlab -nojvm -nosplash -r "addpath(fullfile(pwd))" ``` -To get the latest commit you then need to update the submodule with the information +To get the latest commit you then need to update the submodule with the information on its remote repository and then merge those locally. ```bash git submodule update --remote --merge ``` -Remember that updates to submodules need to be commited as well. +Remember that updates to submodules need to be committed as well. +#### Example for submodule usage + +So say you want to clone a repo that has some nested submodules, then you would type this to get the content of all the submodules at once (here with my experiment repo): +``` bash +git clone --recurse-submodules https://github.com/Repo-Folder/yourExperiment.git +``` +This would be the way to do it "by hand" + +```bash +# clone the repo +git clone https://github.com/Repo-Folder/yourExperiment.git + +# go into the directory +cd Repo-Folder/yourExperiment + +# initialize and get the content of the first level of submodules (CPP_PTB and CPP_BIDS) +git submodule init +git submodule update + +# get the nested submodules JSONio and BIDS-matlab for CPP_BIDS +git submodule foreach --recursive 'git submodule init' +git submodule foreach --recursive 'git submodule update' +``` **TO DO**