Commit 5d354ff0 authored by James Desjardins's avatar James Desjardins
Browse files

Bug fix for new scalpart ability to skip filtering

parent 4e34086a
......@@ -210,7 +210,7 @@ logging_log('INFO', 'REREFERENCED TO INTERPOLATED AVERAGE SITE...');
% Filters the data to remove frequencies lower than the selected value. The residuals that
% were removed can be saved for further analysis if needed.
logging_log('INFO', 'High pass filtering the data...');
if([low_bound_hz]);
if([[low_bound_hz]]);
pre_hp_data = EEG.data;
EEG = pop_eegfiltnew(EEG,[],[low_bound_hz],[],true,[],0);
EEG.setname = 'filtHP';
......@@ -239,7 +239,7 @@ end
% Filters the data to remove frequencies higher the selected value. The residuals that
% were removed can be saved for further analysis if needed.
logging_log('INFO', 'Low pass filtering the data...');
if([high_bound_hz]);
if([[high_bound_hz]]);
pre_lp_data = EEG.data;
EEG = pop_eegfiltnew(EEG,[],[high_bound_hz],[],0,[],0);
EEG.setname = 'filtLP';
......
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