SnPM-toolbox / SnPM-devel

Statistical NonParametric Mapping, development version
GNU General Public License v3.0
25 stars 10 forks source link

Forward compatibility for batch lazy-loading in SPM devel #87

Open gllmflndn opened 2 years ago

gllmflndn commented 2 years ago

What does this PR do?

In a future version of SPM, batch modules can be evaluated on request instead of at start time (lazy-loading). As a consequence, this means that the .val field of a module can contain a function handle which, when executed, will return the parameters of a module, instead of directly containing the parameters themselves (as in SPM12).

The proposed change guarantees that SnPM will work with current and future versions of SPM for that matter.

Link to relevant issues

PR submission checklist

Tests fail because they rely on nansum() from the Statistics toolbox, which is not installed on my system.