There are three ways of defining a data index for time series data in PsPM: (a) "seconds" (i.e. time from first sample), (b) "samples" (i.e. in terms of the sample), and (c) "markers" (i.e. by way of a separate marker channel).
This function should convert options (a) and (c) to (b).
It should then be renamed to pspm_get_sample_index (or pspm_get_sample?)
Summary
There are three ways of defining a data index for time series data in PsPM: (a) "seconds" (i.e. time from first sample), (b) "samples" (i.e. in terms of the sample), and (c) "markers" (i.e. by way of a separate marker channel).
This function should convert options (a) and (c) to (b).
It should then be renamed to
pspm_get_sample_index
(orpspm_get_sample
?)