bachlab / PsPM

A matlab suite for Psycho-Physiological Modelling
GNU General Public License v3.0
44 stars 11 forks source link

`pspm_dcm` fails if all data are NaN #644

Closed dominikbach closed 8 months ago

dominikbach commented 9 months ago

Summary

The call [post, out] = VBA_NLStateSpaceModel(model.meanSCR(:)',u,f_fname,g_fname,dim,invopt); in pspm_dcm_inv returns empty variables; the subsequent extraction fails.

Test data: sub 3 from https://zenodo.org/records/5573788

Solution

There should be no valid subsessions in this case. If there no valid subsessions, pspm_dcm_inv should not be called in the first place.