49 lines
1.0 KiB
Mathematica
49 lines
1.0 KiB
Mathematica
|
classdef PDSession
|
||
|
properties
|
||
|
datafile
|
||
|
eye
|
||
|
settings
|
||
|
trials = PDTrial;
|
||
|
date
|
||
|
time
|
||
|
|
||
|
name
|
||
|
labels
|
||
|
samples
|
||
|
sampling_rate
|
||
|
events_
|
||
|
|
||
|
trial_start_pattern
|
||
|
trial_end_pattern
|
||
|
|
||
|
baseline_type
|
||
|
baseline_onset_pattern
|
||
|
baseline_offset_pattern
|
||
|
|
||
|
stimulus_onset_pattern
|
||
|
stimulus_offset_pattern
|
||
|
|
||
|
label_patterns
|
||
|
label_dependencies
|
||
|
end
|
||
|
|
||
|
methods
|
||
|
function[obj] = PDSession(varargin)
|
||
|
if nargin==0
|
||
|
error('Session requires a PDSubject')
|
||
|
else
|
||
|
obj.datafile = varargin{1};
|
||
|
obj.eye = 'left' %% default to left eye recording
|
||
|
[basedir obj.name ext] = fileparts(obj.datafile);
|
||
|
obj.importData(varargin{1});
|
||
|
obj = obj.setFramerate;
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
function readEDF(filename)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|