1414
1515<!-- lint enable -->
1616
17+ ## Use the CPP templates for PsychToolBox experiments
18+
19+ The easiest way to use this repository is to create a new repository by using
20+ the
21+ [ template PTB experiment repository] ( https://github.com/cpp-lln-lab/template_PTB_experiment ) :
22+ this creates a new repository on your github account with all the basic folders,
23+ files and submodules (including CPP_BIDS) already set up. You only have to then
24+ clone the repository and you are good to go.
25+
1726## Download with git
1827
1928``` bash
2029cd fullpath_to_directory_where_to_install
2130
22- # use git to download the code
23- git clone https://github.com/cpp-lln-lab/CPP_BIDS.git
24-
25- # move into the folder you have just created
26- cd CPP_BIDS
27-
28- # add the src folder to the matlab path and save the path
29- matlab -nojvm -nosplash -r " addpath(fullfile(pwd, 'src')); savepath ();"
31+ # use git to download the code and the submodules
32+ git clone --recurse-submodules https://github.com/cpp-lln-lab/CPP_BIDS.git
3033```
3134
3235Then get the latest commit:
@@ -53,12 +56,6 @@ cd fullpath_to_directory_where_to_install
5356
5457# use git to download the code
5558git submodule add https://github.com/cpp-lln-lab/CPP_BIDS.git
56-
57- # move into the folder you have just created
58- cd CPP_BIDS
59-
60- # add the src folder to the matlab path and save the path
61- matlab -nojvm -nosplash -r " addpath(fullfile(pwd, 'src'))"
6259```
6360
6461To get the latest commit you then need to update the submodule with the
@@ -83,7 +80,7 @@ git clone https://github.com/user_name/myExperiment.git
8380# go into the directory
8481cd myExperiment
8582
86- # initialize and get the content of the first level of submodules (e.g. CPP_PTB and CPP_BIDS)
83+ # initialize and get the content of the first level of submodules
8784git submodule init
8885git submodule update
8986
@@ -94,6 +91,8 @@ git submodule foreach --recursive 'git submodule update'
9491
9592## Direct download
9693
94+ NOT RECOMMENDED.
95+
9796Download the code. Unzip. And add to the matlab path.
9897
9998Pick a specific version from
0 commit comments