Commit ad216d38 authored by Jesse Heckman's avatar Jesse Heckman

TDT acquisition

parent a570db70
......@@ -12,34 +12,19 @@ cd('/Users/jjheckman/Documents/Data/PhD'); % default data directory
cdir = uigetdir(); if cdir ~= 0; cd(cdir); end
%% Get variables
d = dir('*.sphere');
sname = d(1).name
experimenter = pb_delreadstr(sname,'delimiter','-','n',1);
participant = pb_delreadstr(sname,'delimiter','-','n',2);
year = pb_delreadstr(sname,'delimiter','-','n',3);
month = pb_delreadstr(sname,'delimiter','-','n',4);
day = pb_delreadstr(sname,'delimiter','-','n',5);
bname = [experimenter '-' participant '-' year '-' month '-' day '-']
%% create data files
spheretrial2complete(); % creates 2 .sphere files: calibration "0000" block, and data "000n" block
%% Prep Calibration data
[fname,~] = pb_getfile('ext',[bname '*.sphere'],'dir',cdir);
[fname,~] = pb_getfile('dir',cdir);
sphere2hoopdat(fname); % calibration
sphere2hoopcsv(fname)
sphere2hoopcsv(fname);
%% Calibrate experiment data
[fname,~] = pb_getfile('ext',[bname '*.sphere'],'dir',cdir);
[fname,~] = pb_getfile('dir',cdir);
sphere2hoopdat(fname); % data
sphere2hoopcsv(fname);
......
......@@ -30,6 +30,18 @@ classdef pb_dataobj < handle
% DELETE - destructor
delete(obj);
end
% function split(obj)
% if size(obj)>1
% cdir = '~/Desktop/';
% path = pb_getdir('cdir',cdir);
% if path
% for i = 1:length(obj)
% save([],obj(i))
% end
% end
% end
% end
function dump(this)
% DUMP - show the content of the internal variables
......
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