Commit d404444e authored by Tyler Collins's avatar Tyler Collins
Browse files

Update s01_scalpart.htb to have new mark type

parent f539f61d
......@@ -63,6 +63,15 @@ logging_log('INFO', 'Loading set file: [batch_dfn]...');
EEG = pop_loadset('filepath','[batch_dfp]','filename','[batch_dfn]');
EEG = eeg_checkset( EEG );
if ~isfield(EEG,'marks');
if isempty(EEG.icaweights)
EEG.marks=marks_init(size(EEG.data));
else
EEG.marks=marks_init(size(EEG.data),min(size(EEG.icaweights)));
end
end
EEG.marks = marks_add_label(EEG.marks,'time_info', {'init_ind',[0,0,1],[1:EEG.pnts]});
%execute the staging script if specified.
if exist('[staging_script]');
[ssp,ssn,sse]=fileparts('[staging_script]');
......@@ -83,14 +92,6 @@ if ~isempty('[montage_info]');
end
end
if ~isfield(EEG,'marks');
if isempty(EEG.icaweights)
EEG.marks=marks_init(size(EEG.data));
else
EEG.marks=marks_init(size(EEG.data),min(size(EEG.icaweights)));
end
end
% Apply trimmed average re-reference
chan_inds = marks_label2index(EEG.marks.chan_info,{'manual'},'indexes','invert','on');
trm_m = ve_trimmean(EEG.data(chan_inds,:),[aref_trim],1);
......
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