You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can then use the [matlab package manager](https://github.com/mobeets/mpm), to simply download the appropriate version of those dependencies and add them to your path by running a `getDependencies` function like the one below where you just need to replace `YOUR_EXPERIMENT_NAME` by the name of your experiment.
64
+
Add it as a submodule in the repo you are working on.
46
65
47
-
```matlab
48
-
function getDependencies(action)
49
-
% Will install on your computer the matlab dependencies specified in the mpm-requirements.txt
50
-
% and add them to the matlab path. The path is never saved so you need to run getDependencies() when
51
-
% you start matlab.
52
-
%
53
-
% getDependencies('update') will force the update and overwrite previous version of the dependencies.
54
-
%
55
-
% getDependencies() If you only already have the appropriate version but just want to add them to the matlab path.
To get the latest commit you then need to update the submodule with the information
77
+
on its remote repository and then merge those locally.
78
+
```bash
79
+
git submodule update --remote --merge
80
+
```
81
+
82
+
Remember that updates to submodules need to be commited as well.
83
+
84
+
**TO DO**
85
+
<!-- Submodules
86
+
pros: in principle, downloading the experiment you have the whole package plus the benefit to stay updated and use version control of this dependency. Can probably handle a use case in which one uses different version on different projects (e.g. older and newer projects).
87
+
cons: for pro users and not super clear how to use it at the moment. -->
88
+
89
+
### Direct download
90
+
91
+
Download the code. Unzip. And add to the matlab path.
<!-- Download a specific version and c/p it in a subfun folder
103
+
pros: the easiest solution to share the code and 'installing' it on the stimulation computer (usually not the one used to develop the code).
104
+
cons: extreme solution useful only at the very latest stage (i.e. one minute before acquiring your data); prone to be customized/modified (is it what we want?) -->
105
+
76
106
## Setting up keyboards
77
107
78
108
To select a specific keyboard to be used by the experimenter or the participant, you need to know
@@ -98,9 +128,66 @@ press the keys necessary to start or abort the experiment.
98
128
99
129
Using empty vectors (ie `[]`) or a negative value for those means that you will let PTB find and use the default device.
0 commit comments