You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
dominikbach
changed the title
Thanks for flagging up this edge case, in which a non-integer ratio of initial sample rate, and model sample rate (default 10 Hz) lead to an error. Unfortunately, just rounding the ratio of sample rates will produce wrong missing value indices, because the data are downsampled with the correct non-integer ratio using a different procedure.
Problem with downsampling missing values in pspm_dcm.
Oct 7, 2024
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 #719 (reply in thread)
The text was updated successfully, but these errors were encountered: