NeuralAnalysis / PyalData

Repository for the Python implementation of the TrialData analysis library.
GNU General Public License v3.0
7 stars 9 forks source link

fix(iss134): fix bug in restrict_to_interval that produces strange behavior with epoch_fun #135

Closed raeedcho closed 1 year ago

raeedcho commented 2 years ago

Addresses https://github.com/NeuralAnalysis/PyalData/issues/134

bagibence commented 1 year ago

Thank you, looks good to me!

Just a note for later: we're temporarily almost duplicating the data in the time-varying fields, so if we ever run into memory problems with bigger datasets, we'll just have to implement the other proposed solution (storing only the slices created by epoch_fun applied to the trials).