From da16c5fbf3469984b682cdaec0bbbfca7b2ac402 Mon Sep 17 00:00:00 2001 From: rcassani Date: Tue, 26 Nov 2024 12:22:21 -0500 Subject: [PATCH] Process: Allow time-bands files for `Filter2` processes --- toolbox/process/bst_process.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/process/bst_process.m b/toolbox/process/bst_process.m index c0d038982..406f4d867 100644 --- a/toolbox/process/bst_process.m +++ b/toolbox/process/bst_process.m @@ -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 = [];