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.
In what is currently line 404 of
pspm_dcm
, the functiondownsample
is 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_downsample
becomes the main function for handling downsampling, and integrates lines 154-178 ofpspm_prepdata
pspm_prepdata
andpspm_dcm
callpspm_downsample
for downsampling.pspm_downsample
Originally posted by @dominikbach in https://github.com/bachlab/PsPM/discussions/719#discussioncomment-10870203