sollan / alma

Fully automated (rodent) limb motion analysis toolbox for behavioral analysis with bodypart coordinate data, building upon markerless pose estimation.
GNU General Public License v3.0
13 stars 5 forks source link

Button not displayed properly when only one validated slip in file #3

Closed sollan closed 3 years ago

sollan commented 4 years ago

prev_button and next_button (and possibly the find_neighbors function) have to be disabled in this case, or else it causes an error.

sollan commented 4 years ago
new_frame = -1 : self.SwitchFrame(event, new_frame))
  File "/home/annette/Desktop/DeepLabCut/slip_detector/Panels/Validate.py", line 353, in SwitchFrame
    self.prev_val, self.next_val = ValidateFunctions.find_neighbors(self.n_frame, self.t_val)
  File "/home/annette/Desktop/DeepLabCut/slip_detector/Functions/ValidateFunctions.py", line 266, in find_neighbors
    return 0, t_pred[1]
IndexError: list index out of range