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:
pspm_downsample becomes the main function for handling downsampling, and integrates lines 154-178 of pspm_prepdata
pspm_prepdata and pspm_dcm call pspm_downsample for downsampling.
- create tests for
pspm_downsample
Originally posted by @dominikbach in #719 (reply in thread)
In what is currently line 404 of
pspm_dcm, the functiondownsampleis called with a potentially non-integer sample rate, which will throw an error. The functionresample(used inpspm_prepdata) would work here, but only if the signal processing toolbox is installed.Suggested workaround:
pspm_downsamplebecomes the main function for handling downsampling, and integrates lines 154-178 ofpspm_prepdatapspm_prepdataandpspm_dcmcallpspm_downsamplefor downsampling.pspm_downsampleOriginally posted by @dominikbach in #719 (reply in thread)