|
10 | 10 | * 1.6. [eyeTracker](#eyeTracker) |
11 | 11 | * 1.7. [standByScreen](#standByScreen) |
12 | 12 | * 1.8. [waitForTrigger](#waitForTrigger) |
| 13 | + * 1.9. [readAndFilterLogfile](#readAndFilterLogfile) |
13 | 14 | * 2. [Keyboard functions: response collection and aborting experiment](#Keyboardfunctions:responsecollectionandabortingexperiment) |
14 | 15 | * 2.1. [testKeyboards](#testKeyboards) |
15 | 16 | * 2.2. [getResponse](#getResponse) |
|
18 | 19 | * 3.1. [drawFixationCross](#drawFixationCross) |
19 | 20 | * 4. [Drawing dots](#Drawingdots) |
20 | 21 | * 5. [Drawing apertures](#Drawingapertures) |
| 22 | +* 6. [Randomization](#Randomization) |
| 23 | + * 6.1. [shuffle](#shuffle) |
| 24 | + * 6.2. [setTargetPositionInSequence](#setTargetPositionInSequence) |
| 25 | + * 6.3. [repeatShuffleConditions](#repeatShuffleConditions) |
21 | 26 |
|
22 | 27 | <!-- vscode-markdown-toc-config |
23 | 28 | numbering=true |
@@ -82,6 +87,9 @@ It shows a basic one-page instruction stored in `cfg.task.instruction` and wait |
82 | 87 | Counts a certain number of triggers coming from the mri/scanner before returning. |
83 | 88 | Requires number of triggers to wait for. |
84 | 89 |
|
| 90 | +### 1.9. <a name='readAndFilterLogfile'></a>readAndFilterLogfile |
| 91 | + |
| 92 | +Displays in the command window part of the `*events.tsv` file filterd by an element (e.g. 'trigger'). It can take the last output produced (through `cfg`) or any output BIDS compatible (through file path). |
85 | 93 |
|
86 | 94 | ## 2. <a name='Keyboardfunctions:responsecollectionandabortingexperiment'></a>Keyboard functions: response collection and aborting experiment |
87 | 95 |
|
@@ -130,3 +138,19 @@ Define the parameters of the fixation cross in `cfg` and `expParameters` and thi |
130 | 138 | ## 4. <a name='Drawingdots'></a>Drawing dots |
131 | 139 |
|
132 | 140 | ## 5. <a name='Drawingapertures'></a>Drawing apertures |
| 141 | + |
| 142 | +## 6. <a name='Randomization'></a>Randomization |
| 143 | + |
| 144 | +Functions that can be used to create random stimuli sequences. |
| 145 | + |
| 146 | +### 6.1. <a name='shuffle'></a>shuffle |
| 147 | + |
| 148 | +Is just there to replace the Shuffle function from PTB in case it is not in the path. Can be useful for testing or for continuous integration. |
| 149 | + |
| 150 | +### 6.2. <a name='setTargetPositionInSequence'></a>setTargetPositionInSequence |
| 151 | + |
| 152 | +For a sequence of length `seqLength` where we want to insert `nbTarget` targets, this will return `nbTarget` random position in that sequence and make sure that they are not in consecutive positions. |
| 153 | + |
| 154 | +### 6.3. <a name='repeatShuffleConditions'></a>repeatShuffleConditions |
| 155 | + |
| 156 | +Given `baseConditionVector`, a vector of conditions (coded as numbers), this will create a longer vector made of `nbRepeats` of this base vector and make sure that a given condition is not repeated one after the other. |
0 commit comments