Commit 29929a55 authored by Jesse Heckman's avatar Jesse Heckman
Browse files

minor fix

parent 5d15e0a9
function pb_vStoreData(cfg, data)
function handles = pb_vStoreTrial(handles, data)
% PB_VSTOREDATA
%
% PB_VSTOREDATA(handles, data) stores all the trial data and configurements
......@@ -8,6 +8,7 @@ function pb_vStoreData(cfg, data)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
cfg = handles.cfg;
cd([cfg.dname filesep 'trial'])
[~,prefix] = pb_fext(cfg.fname);
......@@ -16,6 +17,8 @@ function pb_vStoreData(cfg, data)
beta = setCFG(cfg); %% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY
save(fname,'data', 'beta', '-mat');
handles.cfg = cfg;
end
function beta = setCFG(cfg)
......
......@@ -74,7 +74,7 @@ function pb_vRunExp(handles)
pb_vTraces(handles);
% save trial
handles = pb_vStoreData(handles, profile);
handles = pb_vStoreTrial(handles, profile);
handles.cfg = pb_updatecount(handles.cfg,'trial','count');
toc(trialTime);
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment