Skip to content

Commit 0f78a53

Browse files
committed
move static reseed config back to visual localizer
1 parent 2960371 commit 0f78a53

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

lib/CPP_PTB

subfun/defaults/checkParameters.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
%% Visual Stimulation
6464
fieldsToSet.dot = cppPtbDefaults('dot');
6565
fieldsToSet.dot.color = fieldsToSet.color.white;
66+
% Static dots should change position at each event or not
67+
fieldsToSet.staticReSeed = true;
6668

6769
%% Task(s)
6870

tests/data/config_MT.mat

1 Byte
Binary file not shown.

tests/data/config_MT_MST.mat

-4 Bytes
Binary file not shown.

tests/test_checkParameters.m

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ function test_checkParameters_MT()
111111
% prepare expected results
112112
cfg = removeDirFieldForGithubAction(cfg);
113113

114+
fileToLoad = fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat');
114115
% uncomment for update default config .mat
115-
% expected = cfg;
116-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
117-
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
116+
% expected = cfg;
117+
% save(fileToLoad, 'expected');
118+
load(fileToLoad, 'expected');
118119

119120
% test
120121
checkAllFields(cfg, expected);
@@ -131,10 +132,11 @@ function test_checkParameters_MT_MST()
131132
% prepare expected results
132133
cfg = removeDirFieldForGithubAction(cfg);
133134

135+
fileToLoad = fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat');
134136
% uncomment for update default config .mat
135137
% expected = cfg;
136-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
137-
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
138+
% save(fileToLoad, 'expected');
139+
load(fileToLoad, 'expected');
138140

139141
% test
140142
checkAllFields(cfg, expected);

0 commit comments

Comments
 (0)