Skip to content

Commit

Permalink
move static reseed config back to visual localizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Mar 18, 2022
1 parent 2960371 commit 0f78a53
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/CPP_PTB
2 changes: 2 additions & 0 deletions subfun/defaults/checkParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
%% Visual Stimulation
fieldsToSet.dot = cppPtbDefaults('dot');
fieldsToSet.dot.color = fieldsToSet.color.white;
% Static dots should change position at each event or not
fieldsToSet.staticReSeed = true;

%% Task(s)

Expand Down
Binary file modified tests/data/config_MT.mat
Binary file not shown.
Binary file modified tests/data/config_MT_MST.mat
Binary file not shown.
12 changes: 7 additions & 5 deletions tests/test_checkParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ function test_checkParameters_MT()
% prepare expected results
cfg = removeDirFieldForGithubAction(cfg);

fileToLoad = fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat');
% uncomment for update default config .mat
% expected = cfg;
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
% expected = cfg;
% save(fileToLoad, 'expected');
load(fileToLoad, 'expected');

% test
checkAllFields(cfg, expected);
Expand All @@ -131,10 +132,11 @@ function test_checkParameters_MT_MST()
% prepare expected results
cfg = removeDirFieldForGithubAction(cfg);

fileToLoad = fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat');
% uncomment for update default config .mat
% expected = cfg;
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
% save(fileToLoad, 'expected');
load(fileToLoad, 'expected');

% test
checkAllFields(cfg, expected);
Expand Down

0 comments on commit 0f78a53

Please sign in to comment.