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 Index error in `restrict_to_interval` #104

Closed AtMostafa closed 3 years ago

AtMostafa commented 3 years ago

I had to change the _slice_in_trial() interface to do all the checks in one place. Extra check added to remove trials with np.nan. Also, added a int() conversion for slice indices.

Fixes this in a few sessions I tried.

bagibence commented 3 years ago

Closing as this is fixed by #105