spiketools.utils.trials.recombine_trial_data¶
- spiketools.utils.trials.recombine_trial_data(times_trials, values_trials, axis=None)[source]¶
Recombine data across trials.
- Parameters:
- times_trialslist of 1d array
Epoched timestamps.
- values_trialslist of 1d or 2d array
Epoched trial data.
- axis{0, 1}, optional
The axis argument for the values data, if it’s a 2d array, as {0: column, 1: row}. If not provided, is inferred from the values array.
- Returns:
- time1d array
Recombined timestamps.
- values1d or 2d array
Recombined trial data.