def test_mouse1_mouse2_im2_cage_4(self): im2 = self.out4["mouse1"][:] im1 = self.out4["mouse2"][:] ics.remove_overlapping_intervals(im1, im2) self.assertEqual(im1, [[10, 22, 45], [12, 40, 50]])
def test_mouse2_mouse4_im1(self): im1 = self.out1["mouse2"][:] im2 = self.out1["mouse4"][:] ics.remove_overlapping_intervals(im1, im2) self.assertEqual(im1, [[0, 2.5, 13], [2, 3, 14]])
def test_mouse2_mouse4_im2(self): im2 = self.out1["mouse2"][:] im1 = self.out1["mouse4"][:] ics.remove_overlapping_intervals(im1, im2) self.assertEqual(im1, [[18], [20]])
def test_mouse3_mouse1_im2(self): im2 = self.out1["mouse3"][:] im1 = self.out1["mouse1"][:] ics.remove_overlapping_intervals(im1, im2) self.assertEqual(im1, [[], []])