Skip to content

Commit 5158b97

Browse files
committed
add some post init
1 parent bedfed8 commit 5158b97

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

subfun/postInitializationSetup.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,17 @@
1010

1111
cfg = postInitDots(cfg);
1212

13+
% TODO transfer those if blocks into 'degToPix' (and similarly into pixToDeg)
14+
% TODO this kind of generic post initialization can be done systematically at end of initPTB
15+
if isfield(cfg.fixation, 'xDisplacement')
16+
cfg.fixation = degToPix('xDisplacement', cfg.fixation, cfg);
17+
end
18+
if isfield(cfg.fixation, 'yDisplacement')
19+
cfg.fixation = degToPix('yDisplacement', cfg.fixation, cfg);
20+
end
21+
22+
if isfield(cfg.design, 'xDisplacementAperture')
23+
cfg.design = degToPix('xDisplacementAperture', cfg.design, cfg);
24+
end
25+
1326
end

0 commit comments

Comments
 (0)