Skip to content

Commit 38b65c7

Browse files
authored
Merge pull request #70 from Remi-Gau/remi-tesing_20210303
[ENH] post tesing 20210303 update
2 parents d8d5769 + 6471b05 commit 38b65c7

File tree

9 files changed

+111
-17
lines changed

9 files changed

+111
-17
lines changed

.all-contributorsrc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributors": [
8+
{
9+
"login": "mohmdrezk",
10+
"name": "Mohamed Rezk",
11+
"avatar_url": "https://avatars2.githubusercontent.com/u/9597815?v=4",
12+
"profile": "https://github.com/mohmdrezk",
13+
"contributions": [
14+
"code",
15+
"design",
16+
"ideas"
17+
]
18+
},
19+
{
20+
"login": "marcobarilari",
21+
"name": "marcobarilari",
22+
"avatar_url": "https://avatars3.githubusercontent.com/u/38101692?v=4",
23+
"profile": "https://github.com/marcobarilari",
24+
"contributions": [
25+
"code",
26+
"design",
27+
"ideas",
28+
"bug",
29+
"userTesting",
30+
"review",
31+
"question",
32+
"infra",
33+
"maintenance"
34+
]
35+
},
36+
{
37+
"login": "Remi-Gau",
38+
"name": "Remi Gau",
39+
"avatar_url": "https://avatars3.githubusercontent.com/u/6961185?v=4",
40+
"profile": "https://remi-gau.github.io/",
41+
"contributions": [
42+
"code",
43+
"design",
44+
"ideas",
45+
"bug",
46+
"userTesting",
47+
"review",
48+
"question",
49+
"infra",
50+
"maintenance"
51+
]
52+
},
53+
{
54+
"login": "CerenB",
55+
"name": "CerenB",
56+
"avatar_url": "https://avatars1.githubusercontent.com/u/10451654?v=4",
57+
"profile": "https://github.com/CerenB",
58+
"contributions": [
59+
"bug",
60+
"userTesting"
61+
]
62+
}
63+
],
64+
"contributorsPerLine": 7,
65+
"projectName": "localizer_visual_motion",
66+
"projectOwner": "cpp-lln-lab",
67+
"repoType": "github",
68+
"repoHost": "https://github.com",
69+
"skipCi": false
70+
"contributorsSortAlphabetically": true
71+
}

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[![](https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white)](https://github.com/cpp-lln-lab/localizer_visual_motion/actions)
2+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
4+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
25
![](https://github.com/cpp-lln-lab/localizer_visual_motion/workflows/CI/badge.svg)
36

47
[![codecov](https://codecov.io/gh/cpp-lln-lab/localizer_visual_motion/branch/master/graph/badge.svg)](https://codecov.io/gh/cpp-lln-lab/localizer_visual_motion)
@@ -143,3 +146,25 @@ The `numEventsPerBlock` should be a multiple of the number of "base" listed in t
143146
- `-1` indicates static
144147
- `expParameters.designSpeeds` is an array `(nr_blocks, numEventsPerBlock) * speedEvent`
145148
- `expParameters.designFixationTargets` is an array `(nr_blocks, numEventsPerBlock)` showing for each event if it should be accompanied by a target
149+
150+
## Contributors ✨
151+
152+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
153+
154+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
155+
<!-- prettier-ignore-start -->
156+
<!-- markdownlint-disable -->
157+
<table>
158+
<tr>
159+
<td align="center"><a href="https://github.com/mohmdrezk"><img src="https://avatars2.githubusercontent.com/u/9597815?v=4" width="100px;" alt=""/><br /><sub><b>Mohamed Rezk</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/localizer_visual_motion/commits?author=mohmdrezk" title="Code">💻</a> <a href="#design-mohmdrezk" title="Design">🎨</a> <a href="#ideas-mohmdrezk" title="Ideas, Planning, & Feedback">🤔</a></td>
160+
<td align="center"><a href="https://github.com/marcobarilari"><img src="https://avatars3.githubusercontent.com/u/38101692?v=4" width="100px;" alt=""/><br /><sub><b>marcobarilari</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/localizer_visual_motion/commits?author=marcobarilari" title="Code">💻</a> <a href="#design-marcobarilari" title="Design">🎨</a> <a href="#ideas-marcobarilari" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/cpp-lln-lab/localizer_visual_motion/issues?q=author%3Amarcobarilari" title="Bug reports">🐛</a> <a href="#userTesting-marcobarilari" title="User Testing">📓</a> <a href="https://github.com/cpp-lln-lab/localizer_visual_motion/pulls?q=is%3Apr+reviewed-by%3Amarcobarilari" title="Reviewed Pull Requests">👀</a> <a href="#question-marcobarilari" title="Answering Questions">💬</a> <a href="#infra-marcobarilari" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-marcobarilari" title="Maintenance">🚧</a></td>
161+
<td align="center"><a href="https://remi-gau.github.io/"><img src="https://avatars3.githubusercontent.com/u/6961185?v=4" width="100px;" alt=""/><br /><sub><b>Remi Gau</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/localizer_visual_motion/commits?author=Remi-Gau" title="Code">💻</a> <a href="#design-Remi-Gau" title="Design">🎨</a> <a href="#ideas-Remi-Gau" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/cpp-lln-lab/localizer_visual_motion/issues?q=author%3ARemi-Gau" title="Bug reports">🐛</a> <a href="#userTesting-Remi-Gau" title="User Testing">📓</a> <a href="https://github.com/cpp-lln-lab/localizer_visual_motion/pulls?q=is%3Apr+reviewed-by%3ARemi-Gau" title="Reviewed Pull Requests">👀</a> <a href="#question-Remi-Gau" title="Answering Questions">💬</a> <a href="#infra-Remi-Gau" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-Remi-Gau" title="Maintenance">🚧</a></td>
162+
<td align="center"><a href="https://github.com/CerenB"><img src="https://avatars1.githubusercontent.com/u/10451654?v=4" width="100px;" alt=""/><br /><sub><b>CerenB</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/localizer_visual_motion/issues?q=author%3ACerenB" title="Bug reports">🐛</a> <a href="#userTesting-CerenB" title="User Testing">📓</a></td>
163+
</tr>
164+
</table>
165+
166+
<!-- markdownlint-enable -->
167+
<!-- prettier-ignore-end -->
168+
<!-- ALL-CONTRIBUTORS-LIST:END -->
169+
170+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

lib/CPP_BIDS

Submodule CPP_BIDS updated 117 files

lib/CPP_PTB

Submodule CPP_PTB updated 92 files

setParameters.m

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
% setParamters.m file is
1212
% change that if you want the data to be saved somewhere else
1313
cfg.dir.output = fullfile( ...
14-
fileparts(mfilename('fullpath')), '..', ...
15-
'output');
14+
fileparts(mfilename('fullpath')), 'output');
1615

1716
%% Debug mode settings
1817

1918
cfg.debug.do = false; % To test the script out of the scanner, skip PTB sync
2019
cfg.debug.smallWin = false; % To test on a part of the screen, change to 1
2120
cfg.debug.transpWin = false; % To test with trasparent full size screen
2221

23-
cfg.verbose = 2;
22+
cfg.verbose = 1;
2423

2524
%% Engine parameters
2625

@@ -64,7 +63,7 @@
6463
% IBI
6564
% block length = (cfg.eventDuration + cfg.ISI) * cfg.design.nbEventsPerBlock
6665

67-
cfg.timing.eventDuration = 0.8; % second
66+
cfg.timing.eventDuration = 0.6; % second
6867

6968
% Time between blocs in secs
7069
cfg.timing.IBI = 0;
@@ -79,7 +78,7 @@
7978
if cfg.pacedByTriggers.do
8079

8180
cfg.pacedByTriggers.quietMode = true;
82-
cfg.pacedByTriggers.nbTriggers = 1;
81+
cfg.pacedByTriggers.nbTriggers = 5;
8382

8483
cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second
8584

@@ -103,7 +102,7 @@
103102
% Number of dots per visual angle square.
104103
cfg.dot.density = 1;
105104
% Dot life time in seconds
106-
cfg.dot.lifeTime = .4;
105+
cfg.dot.lifeTime = 0.4;
107106
% proportion of dots killed per frame
108107
cfg.dot.proportionKilledPerFrame = 0;
109108
% Dot Size (dot width) in visual angles.
@@ -136,7 +135,7 @@
136135

137136
cfg.extraColumns = { ...
138137
'direction', ...
139-
'speed', ...
138+
'speedDegVA', ...
140139
'target', ...
141140
'event', ...
142141
'block', ...
@@ -167,7 +166,7 @@
167166
function cfg = setMRI(cfg)
168167
% letter sent by the trigger to sync stimulation and volume acquisition
169168
cfg.mri.triggerKey = 't';
170-
cfg.mri.triggerNb = 1;
169+
cfg.mri.triggerNb = 5;
171170

172171
cfg.mri.repetitionTime = 1.8;
173172

subfun/preSaveSetup.m

100644100755
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
thisEvent.fixationPosition = thisFixation.fixation.xDisplacement;
1717
thisEvent.aperturePosition = cfg.aperture.xPos * sign(cfg.aperture.xPosPix);
1818

19-
% % this value should be in degrees / second in the log file
20-
% % highlights that the way speed is passed around could be
21-
% % simplified.
22-
% %
23-
% thisEvent.speed
24-
% %
19+
thisEvent = pixToDeg('speedPix', thisEvent, cfg);
20+
thisEvent.speedDegVA = thisEvent.speedDegVA * cfg.screen.monitorRefresh;
2521

2622
% Save the events txt logfile
2723
% we save event by event so we clear this variable every loop
24+
thisEvent.isStim = logFile.isStim;
2825
thisEvent.fileID = logFile.fileID;
2926
thisEvent.extraColumns = logFile.extraColumns;
3027

subfun/preTrialSetup.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
% set direction, speed of that event and if it is a target
1111
thisEvent.trial_type = cfg.design.blockNames{iBlock};
1212
thisEvent.direction = cfg.design.directions(iBlock, iEvent);
13-
thisEvent.speed = cfg.design.speeds(iBlock, iEvent);
13+
thisEvent.speedPix = cfg.design.speeds(iBlock, iEvent);
1414
thisEvent.target = cfg.design.fixationTargets(iBlock, iEvent);
1515

1616
% If this frame shows a target we change the color of the cross

subfun/saveResponsesAndTriggers.m

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function saveResponsesAndTriggers(responseEvents, cfg, logFile, triggerString)
1717
end
1818
end
1919

20+
responseEvents(1).isStim = logFile.isStim;
2021
responseEvents(1).fileID = logFile.fileID;
2122
responseEvents(1).extraColumns = logFile.extraColumns;
2223
saveEventsFile('save', cfg, responseEvents);

visualMotionLocalizer.m

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
% Prepare for the output logfiles with all
4444
logFile.extraColumns = cfg.extraColumns;
45+
logFile = saveEventsFile('init', cfg, logFile);
4546
logFile = saveEventsFile('open', cfg, logFile);
4647

4748
% prepare textures

0 commit comments

Comments
 (0)