Skip to content

Problem with downsampling missing values in pspm_dcm.  #787

@dominikbach

Description

@dominikbach

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions