示例#1
0
 def test_max_y_index(self):
     peak_list = [
         [128, 129],
         [10, 0],
         [0, 120],
         [256, 123],
         [123, 256],
         [256, 256],
         [0, 0],
     ]
     peak_list_filtered = ct._filter_peak_list(peak_list, max_y_index=256)
     assert [[128, 129], [256, 123]] == peak_list_filtered
示例#2
0
 def test_simple(self):
     peak_list = [
         [128, 129],
         [10, 0],
         [0, 120],
         [255, 123],
         [123, 255],
         [255, 255],
         [0, 0],
     ]
     peak_list_filtered = ct._filter_peak_list(peak_list)
     assert [[128, 129]] == peak_list_filtered