Skip to content

Commit

Permalink
Process: Allow time-bands files for Filter2 processes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Nov 26, 2024
1 parent 5ce5e9f commit da16c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/process/bst_process.m
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@
sInputB.Measure = [];
end
% Do not allow TimeBands
if ((isfield(sMatA, 'TimeBands') && ~isempty(sMatA.TimeBands)) || (isfield(sMatB, 'TimeBands') && ~isempty(sMatB.TimeBands))) ...
if ((isfield(sMatA, 'TimeBands') && ~isempty(sMatA.TimeBands)) && ~strcmpi(sMatA.Method, 'mtmconvol') || (isfield(sMatB, 'TimeBands') && ~isempty(sMatB.TimeBands))) && ~strcmpi(sMatB.Method, 'mtmconvol') ...
&& ismember(func2str(sProcess.Function), {'process_baseline_ab', 'process_zscore_ab', 'process_baseline_norm2'})
bst_report('Error', sProcess, [sInputA, sInputB], 'Cannot process values averaged by time bands.');
OutputFile = [];
Expand Down

0 comments on commit da16c5f

Please sign in to comment.