Skip to content

Commit 2add9e2

Browse files
committed
add mock cfg function to run expDesign as stand alone
1 parent d9e31d8 commit 2add9e2

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

setParameters.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757

5858
% if you have static and motion and `nbRepetions` = 4, this will return 8 blocks (n blocks per
5959
% hemifield in case of MT/MST localizer)
60-
cfg.design.nbRepetitions = 10;
61-
cfg.design.nbEventsPerBlock = 10;
60+
cfg.design.nbRepetitions = 12;
61+
cfg.design.nbEventsPerBlock = 12;
6262

6363
%% Timing
6464

subfun/design/expDesign.m

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@
5151
% should be accompanied by a target
5252
%
5353
% (C) Copyright 2020 CPP visual motion localizer developpers
54-
54+
5555
%% Check inputs
56+
57+
% Do not display any figure during the experiment
58+
displayFigs = 0;
59+
5660
if nargin < 1 || isempty(cfg)
5761

5862
% ``true`` for MT+ translational localizer
@@ -61,17 +65,14 @@
6165

6266
% Get mock inputs to run this function as a stand alone and get a flavour of how the design
6367
% looks like given certain inputs. Open this function to set different inputs.
64-
getMockConfig(isMT);
68+
cfg = getMockConfig(isMT);
6569

6670
% Get the computed design on a visual representation
6771
displayFigs = 1;
6872

6973
end
7074

71-
% Set to 1 for a visualtion of the trials design order
72-
if nargin < 2 || isempty(displayFigs)
73-
displayFigs = 0;
74-
end
75+
7576

7677
fprintf('\n\nComputing the design...\n\n');
7778

File renamed without changes.

0 commit comments

Comments
 (0)