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.
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.