Skip to content

Commit

Permalink
Bugfix: Same fields in TimeFreq when extracting a FOOOF measure
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Apr 1, 2022
1 parent e6f540f commit 738abc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/process/functions/process_extract_fooof.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
% Get options
strFooofDisp = GetOptions(sProcess);
% Load input stat file
TimeFreqMat = in_bst_timefreq(sInput.FileName, 0, 'TF', 'Type', 'Comment', 'Options', 'ChannelFlag', 'Time', 'History', 'ColormapType', 'GoodChannel', 'SurfaceFile', 'Atlas', 'GridLoc', 'nComponents', 'HeadModelType', 'DataType', 'TimeBands', 'Freqs', 'RefRowNames', 'RowNames', 'DataFile', 'Measure', 'Method');
TimeFreqMat = in_bst_timefreq(sInput.FileName);
% Check for FOOOF file
if ~(isfield(TimeFreqMat.Options, 'FOOOF') && all(ismember({'options', 'freqs', 'data', 'peaks', 'aperiodics', 'stats'}, fieldnames(TimeFreqMat.Options.FOOOF))))
error('TimeFreq file does not contain specparam information.');
Expand Down

0 comments on commit 738abc3

Please sign in to comment.