From 6e96e79d2a78860cae29fc5e9e354136f9d49bc5 Mon Sep 17 00:00:00 2001 From: Guillaume Flandin Date: Thu, 10 Mar 2022 18:01:13 +0000 Subject: [PATCH] Forward compatibility for batch lazy-loading in SPM devel --- config/snpm_bch_ui_PairT.m | 3 +++ config/snpm_bch_ui_TwoSampPairT.m | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/snpm_bch_ui_PairT.m b/config/snpm_bch_ui_PairT.m index dee7b41..1ff0fb4 100644 --- a/config/snpm_bch_ui_PairT.m +++ b/config/snpm_bch_ui_PairT.m @@ -35,6 +35,9 @@ % Reuse flexible factorial component of SPM to get the design files and % associated conditions factorial_design = spm_cfg_factorial_design(); +if isa(factorial_design.val,'function_handle') + factorial_design.val = feval(factorial_design.val); +end sub_files = factorial_design.val{2}.values{end}.val{2}.val{1}; % We expect exactly two files per subject diff --git a/config/snpm_bch_ui_TwoSampPairT.m b/config/snpm_bch_ui_TwoSampPairT.m index e1965ef..06a1a11 100644 --- a/config/snpm_bch_ui_TwoSampPairT.m +++ b/config/snpm_bch_ui_TwoSampPairT.m @@ -28,6 +28,9 @@ % Reuse flexible factorial component of SPM to get the design files and % associated conditions factorial_design = spm_cfg_factorial_design(); +if isa(factorial_design.val,'function_handle') + factorial_design.val = feval(factorial_design.val); +end sub_files = factorial_design.val{2}.values{end}.val{2}.val{1}; % We expect exactly two files per subject