Skip to content

Commit ef82ad6

Browse files
committed
minor changes
1 parent ca60ac8 commit ef82ad6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

initEnv.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
% If external dir is empty throw an exception
6060
% and ask user to update submodules.
6161
if numel(dir('lib')) <= 2 % Means that the external is empty
62-
error(['Git submodules are not cloned! \n' ...
63-
'try this in your terminal: \n ...'
64-
'git submodule update --recursive ']);
62+
error(['Git submodules are not cloned!', ...
63+
'Try this in your terminal:', ...
64+
' git submodule update --recursive ']);
6565
else
6666
addDependencies();
6767
end

visualLocTanslational.m

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,18 @@
119119

120120
% collect the responses and appends to the event structure for
121121
% saving in the tsv file
122+
responseEvents = collectAndSaveResponses(cfg, logFile, experimentStart);
123+
122124
responseEvents = getResponse('check', cfg.keyboard.responseBox, cfg, getOnlyPress);
123125

124126
if isfield(responseEvents(1), 'onset') && ~isempty(responseEvents(1).onset)
125127

126128
for iResp = 1:size(responseEvents, 1)
127-
responseEvents(iResp).onset = ...
128-
responseEvents(iResp).onset - cfg.experimentStart;
129-
responseEvents(iResp).target = ...
130-
expParameters.designFixationTargets(iBlock, iEvent);
129+
131130
responseEvents(iResp).event = iEvent;
132131
responseEvents(iResp).block = iBlock;
133132
end
134133

135-
responseEvents.fileID = logFile.fileID;
136-
responseEvents.extraColumns = logFile.extraColumns;
137134
saveEventsFile('save', expParameters, responseEvents);
138135

139136
end

0 commit comments

Comments
 (0)