Skip to content

Commit 58a59b1

Browse files
committed
mh fix
1 parent 9d99a1b commit 58a59b1

File tree

9 files changed

+35
-38
lines changed

9 files changed

+35
-38
lines changed

lib/CPP_PTB

setParameters.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@
7171
cfg.timing.onsetDelay = 0;
7272
% Number of seconds after the end all the stimuli before ending the run
7373
cfg.timing.endDelay = 3.6;
74-
74+
7575
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
7676
cfg.timing.IBI = 3.6;
7777
end
78-
78+
7979
% reexpress those in terms of repetition time
8080
if cfg.pacedByTriggers.do
81-
81+
8282
cfg.pacedByTriggers.quietMode = true;
8383
cfg.pacedByTriggers.nbTriggers = 1;
84-
84+
8585
cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second
86-
86+
8787
% Time between blocs in secs
8888
cfg.timing.IBI = 0;
8989
% Time between events in secs
@@ -92,15 +92,15 @@
9292
cfg.timing.onsetDelay = 0;
9393
% Number of seconds after the end all the stimuli before ending the run
9494
cfg.timing.endDelay = 2;
95-
95+
9696
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
9797
cfg.timing.IBI = 2;
9898
end
99-
99+
100100
end
101-
101+
102102
%% Visual Stimulation
103-
103+
104104
% Speed in visual angles / second
105105
cfg.dot.speed = 15;
106106
% Coherence Level (0-1)
@@ -112,14 +112,14 @@
112112
% proportion of dots killed per frame
113113
cfg.dot.proportionKilledPerFrame = 0;
114114
% Dot Size (dot width) in visual angles.
115-
cfg.dot.size = .1;
115+
cfg.dot.size = .2;
116116
cfg.dot.color = cfg.color.white;
117117

118118
% Diameter/length of side of aperture in Visual angles
119119
cfg.aperture.type = 'none';
120120
cfg.aperture.width = []; % if left empty it will take the screen height
121121
cfg.aperture.xPos = 0;
122-
122+
123123
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
124124
cfg.aperture.type = 'circle';
125125
cfg.aperture.width = 7; % if left empty it will take the screen height

subfun/doDotMo.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
[dots] = updateDots(dots, cfg);
3131

3232
%% Center the dots
33-
33+
3434
% We assumed that zero is at the top left, but we want it to be
3535
% in the center, so shift the dots up and left, which just means
36-
% adding half of the screen width in pixel to both the x and y direction.
36+
% adding half of the screen width in pixel to both the x and y direction.
3737
thisEvent.dot.positions = (dots.positions - cfg.dot.matrixWidth / 2)';
3838

3939
%% make textures
40-
40+
4141
dotTexture('make', cfg, thisEvent);
4242

4343
apertureTexture('make', cfg, thisEvent);

subfun/expDesign.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169

170170
end
171171

172-
173172
function [conditionNamesVector, STATIC_INDEX, MOTION_INDEX] = assignConditions(cfg)
174173

175174
[~, nbRepet] = getDesignInput(cfg);

subfun/expDesignMtMst.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@
169169
FIX_RIGHT_INDEX = find(strcmp(conditionNamesVector, 'fixation_right'));
170170
FIX_LEFT_INDEX = find(strcmp(conditionNamesVector, 'fixation_left'));
171171

172-
end
172+
end

subfun/getDesignInput.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
nbEventsBlock = cfg.design.nbEventsPerBlock;
44
maxTargBlock = cfg.target.maxNbPerBlock;
55
nbBlocks = length(cfg.design.names) * nbRepet;
6-
end
6+
end

subfun/preSaveSetup.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
function varargout = preSaveSetup(varargin)
22
% varargout = postInitializatinSetup(varargin)
3-
3+
44
% generic function to prepare structures before saving
5-
5+
66
[thisEvent, iBlock, iEvent, duration, onset, cfg, logFile] = deal(varargin{:});
7-
7+
88
thisEvent.event = iEvent;
99
thisEvent.block = iBlock;
1010
thisEvent.keyName = 'n/a';
1111
thisEvent.duration = duration;
1212
thisEvent.onset = onset - cfg.experimentStart;
13-
13+
1414
% % this value should be in degrees / second in the log file
1515
% % highlights that the way speed is passed around could be
1616
% % simplified.
1717
% %
1818
% thisEvent.speed
1919
% %
20-
20+
2121
% Save the events txt logfile
2222
% we save event by event so we clear this variable every loop
2323
thisEvent.fileID = logFile.fileID;
2424
thisEvent.extraColumns = logFile.extraColumns;
25-
25+
2626
varargout = {thisEvent};
27-
28-
end
27+
28+
end

subfun/preTrialSetup.m

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,27 @@
99
thisEvent.trial_type = cfg.design.blockNames{iBlock};
1010
thisEvent.direction = cfg.design.directions(iBlock, iEvent);
1111
thisEvent.speed = cfg.design.speeds(iBlock, iEvent);
12-
thisEvent.target = cfg.design.fixationTargets(iBlock, iEvent);
13-
12+
thisEvent.target = cfg.design.fixationTargets(iBlock, iEvent);
13+
1414
% If this frame shows a target we change the color of the cross
1515
thisFixation.fixation = cfg.fixation;
1616
thisFixation.screen = cfg.screen;
17-
17+
1818
switch thisEvent.trial_type
1919
case 'fixation_right'
2020
cfg.aperture.xPosPix = -abs(cfg.aperture.xPosPix);
21-
21+
2222
thisFixation.fixation.xDisplacement = cfg.aperture.xPos;
2323
thisFixation = initFixation(thisFixation);
24-
24+
2525
case 'fixation_left'
2626
cfg.aperture.xPosPix = +abs(cfg.aperture.xPosPix);
27-
27+
2828
thisFixation.fixation.xDisplacement = -cfg.aperture.xPos;
2929
thisFixation = initFixation(thisFixation);
30-
30+
3131
end
3232

3333
varargout = {thisEvent, thisFixation, cfg};
34-
35-
3634

37-
end
35+
end

visualLocTranslational.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@
113113
end
114114

115115
eyeTracker('StopRecordings', cfg);
116-
116+
117117
% "prepare" cross for the baseline block
118118
% if MT / MST this allows us to set the cross at the position of the next block
119119
if iBlock < cfg.design.nbBlocks
120-
nextBlock = iBlock+1;
120+
nextBlock = iBlock + 1;
121121
else
122122
nextBlock = cfg.design.nbBlocks;
123123
end

0 commit comments

Comments
 (0)