コード例 #1
0
 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]])
コード例 #2
0
 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]])
コード例 #3
0
 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]])
コード例 #4
0
 def test_mouse3_mouse1_im2(self):
     im2 = self.out1["mouse3"][:]
     im1 = self.out1["mouse1"][:]
     ics.remove_overlapping_intervals(im1, im2)
     self.assertEqual(im1, [[], []])