1
+ <!-- lint disable -->
2
+
3
+ ** Documentation**
4
+
5
+ [ ![ Documentation Status: stable] ( https://readthedocs.org/projects/cpp-ptb/badge/?version=stable )] ( https://cpp-ptb.readthedocs.io/en/stable/?badge=stable )
6
+
7
+ ** Cite it**
8
+
9
+ [ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.4007672.svg )] ( https://doi.org/10.5281/zenodo.4007672 )
10
+
11
+ ** Unit tests and coverage**
12
+
1
13
[ ![ ] ( https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white )] ( https://github.com/cpp-lln-lab/CPP_PTB/actions )
2
14
![ ] ( https://github.com/cpp-lln-lab/CPP_PTB/workflows/CI/badge.svg )
3
15
4
16
[ ![ Build Status] ( https://travis-ci.com/cpp-lln-lab/CPP_PTB.svg?branch=master )] ( https://travis-ci.com/cpp-lln-lab/CPP_PTB )
5
17
6
18
[ ![ codecov] ( https://codecov.io/gh/cpp-lln-lab/CPP_PTB/branch/master/graph/badge.svg )] ( https://codecov.io/gh/cpp-lln-lab/CPP_PTB )
7
19
20
+ ** Contributors**
21
+
8
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
9
23
10
24
[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square )] ( #contributors- )
13
27
14
28
# CPP_PTB
15
29
16
- <!-- lint disable -->
17
-
18
30
<!-- TOC -->
19
31
20
32
- [ CPP_PTB] ( #cpp_ptb )
21
- - [ Requirements] ( #requirements )
22
33
- [ Documentation] ( #documentation )
23
34
- [ Content] ( #content )
24
- - [ How to install] ( #how-to-install )
25
- - [ Download with git] ( #download-with-git )
26
- - [ Add as a submodule] ( #add-as-a-submodule )
27
- - [ Example for submodule usage] ( #example-for-submodule-usage )
28
- - [ Direct download] ( #direct-download )
29
- - [ Add CPP_PTB globally to the matlab path] ( #add-cpp_ptb-globally-to-the-matlab-path )
30
35
- [ Code style guide] ( #code-style-guide )
31
36
- [ Unit tests] ( #unit-tests )
32
37
- [ Contributors ✨] ( #contributors- )
@@ -41,36 +46,15 @@ toolbox.
41
46
Those functions are mostly wrappers around some PTB functions to facilitate
42
47
their use and their reuse (#DontRepeatYourself)
43
48
44
- ## Requirements
45
-
46
- Make sure that the following toolboxes are installed and added to the matlab /
47
- octave path.
48
-
49
- For instructions see the following links:
50
-
51
- <!-- lint disable -->
52
-
53
- | Requirements | Used version |
54
- | -------------------------------------------------------- | ------------ |
55
- | [ PsychToolBox] ( http://psychtoolbox.org/ ) | >=3.0.14 |
56
- | [ Matlab] ( https://www.mathworks.com/products/matlab.html ) | >=2015b |
57
- | or [ Octave] ( https://www.gnu.org/software/octave/ ) | 4.? |
58
-
59
- <!-- lint enable -->
60
-
61
- Tested:
62
-
63
- - matlab 2015b or octave 4.2.2 and PTB 3.0.14.
64
-
65
49
## Documentation
66
50
67
- All the documentation is accessible [ here] ( ./docs/00-index.md ) .
51
+ All the documentation and installtion information is accessible
52
+ [ here] ( https://cpp-ptb.readthedocs.io/en/stable/index.html# ) .
68
53
69
54
## Content
70
55
71
56
``` bash
72
57
├── demos # quick demo of how to use some functions
73
- ├── dev # templates for experiment (will be moved out soon)
74
58
├── docs # documentation
75
59
├── manualTests # all the tests that cannot be automated (yet)
76
60
├── src # actual code of the CPP_PTB
@@ -84,104 +68,6 @@ All the documentation is accessible [here](./docs/00-index.md).
84
68
└── tests # all the tests that that can be run by github actions
85
69
```
86
70
87
- ## How to install
88
-
89
- ### Download with git
90
-
91
- ``` bash
92
- cd fullpath_to_directory_where_to_install
93
- # use git to download the code
94
- git clone https://github.com/cpp-lln-lab/CPP_PTB.git
95
- # move into the folder you have just created
96
- cd CPP_PTB
97
- ```
98
-
99
- Then get the latest commit to stay up to date:
100
-
101
- ``` bash
102
- # from the directory where you downloaded the code
103
- git pull origin master
104
- ```
105
-
106
- To work with a specific version, create a branch at a specific version tag
107
- number
108
-
109
- ``` bash
110
- # creating and checking out a branch that will be called version1 at the version tag v1.0.0
111
- git checkout -b version1 v1.0.0
112
- ```
113
-
114
- ### Add as a submodule
115
-
116
- Add it as a submodule in the repo you are working on.
117
-
118
- ``` bash
119
- cd fullpath_to_directory_where_to_install
120
- # use git to download the code
121
- git submodule add https://github.com/cpp-lln-lab/CPP_PTB.git
122
- ```
123
-
124
- To get the latest commit you then need to update the submodule with the
125
- information on its remote repository and then merge those locally.
126
-
127
- ``` bash
128
- git submodule update --remote --merge
129
- ```
130
-
131
- Remember that updates to submodules need to be committed as well.
132
-
133
- #### Example for submodule usage
134
-
135
- So say you want to clone a repo that has some nested submodules, then you would
136
- type this to get the content of all the submodules at once (here with my
137
- experiment repo):
138
-
139
- ``` bash
140
- git clone --recurse-submodules https://github.com/user_name/yourExperiment.git
141
- ```
142
-
143
- This would be the way to do it "by hand"
144
-
145
- ``` bash
146
- # clone the repo
147
- git clone https://github.com/user_name/yourExperiment.git
148
-
149
- # go into the directory
150
- cd yourExperiment
151
-
152
- # initialize and get the content of the first level of submodules (CPP_PTB and CPP_BIDS)
153
- git submodule init
154
- git submodule update
155
-
156
- # get the nested submodules JSONio and BIDS-matlab for CPP_BIDS
157
- git submodule foreach --recursive ' git submodule init'
158
- git submodule foreach --recursive ' git submodule update'
159
- ```
160
-
161
- ### Direct download
162
-
163
- Download the code. Unzip. And add to the matlab path.
164
-
165
- Pick a specific version from
166
- [ here] ( https://github.com/cpp-lln-lab/CPP_PTB/releases ) .
167
-
168
- Or take
169
- [ the latest commit] ( https://github.com/cpp-lln-lab/CPP_PTB/archive/master.zip ) -
170
- NOT RECOMMENDED.
171
-
172
- ### Add CPP_PTB globally to the matlab path
173
-
174
- This is NOT RECOMMENDED as this might create conflicts if you use different
175
- versions of CPP_PTB as sub-modules.
176
-
177
- Also note that this might not work at all if you have not set a command line
178
- alias to start Matlab from a terminal window by just typing ` matlab ` . :wink :
179
-
180
- ``` bash
181
- # from within the CPP_PTB folder
182
- matlab -nojvm -nosplash -r " addpath(genpath(fullfile(pwd, 'src'))); savepath(); path(); exit();"
183
- ```
184
-
185
71
## Code style guide
186
72
187
73
We use the ` camelCase ` to more easily differentiates our functions from the ones
@@ -209,7 +95,7 @@ We use the
209
95
to automatically fix some linting issues.
210
96
211
97
The code style and quality is also checked during the
212
- [ continuous integration] ( ./.travis .yml ) .
98
+ [ continuous integration] ( .github/workflows/miss_hit .yml ) .
213
99
214
100
## Unit tests
215
101
0 commit comments