bachlab / PsPM

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

Problem with downsampling missing values in `pspm_dcm`. #787

Closed dominikbach closed 4 days ago

dominikbach commented 1 month ago

In what is currently line 404 of pspm_dcm, the function downsample is called with a potentially non-integer sample rate, which will throw an error. The function resample (used in pspm_prepdata) would work here, but only if the signal processing toolbox is installed.

Suggested workaround:

Originally posted by @dominikbach in https://github.com/bachlab/PsPM/discussions/719#discussioncomment-10870203