AllenInstitute / MIES

Multichannel Igor Electrophysiology Suite
https://alleninstitute.github.io/MIES/user.html
Other
21 stars 6 forks source link

EP: fix epoch sorting to be numerically correct #2070

Closed t-b closed 3 months ago

t-b commented 3 months ago

The epoch sorting had two issues:

  1. The sorting was alphabetically such that 2.xxx was between 19.xxx and 20.xxx which is incorrect.

  2. The function assumed that there is always some remaining rows to cutoff at the end. If that was not the case then the epoch in the last row is deleted.

  1. since a2172f0 (Added generations of epoch information wave, 2019-05-22)
  2. since 4ed816a (EP_SortEpochs: Teach it to remove epochs marked for removal, 2021-09-09)