コード例 #1
0
 def testSmoothMaxPosdapMultiZigZag(self):
     tp = json.load(open("emission/tests/data/smoothing_data/caltrain_multi_zigzag.json"))
     (retained_indices, removed_indices) = tags.smooth_max_posdap(tp)
     logging.info("removed indices = %s" % removed_indices)
     self.assertEqual(len(removed_indices), 1)
     self.assertEqual(removed_indices, [46])
コード例 #2
0
 def testSmoothMaxPosdapWalkOneZigZag(self):
     tp = json.load(open("emission/tests/data/smoothing_data/walk_one_zigzag.json"))
     (retained_indices, removed_indices) = tags.smooth_max_posdap(tp)
     logging.info("removed indices = %s" % removed_indices)
     self.assertEqual(len(removed_indices), 0)
     self.assertEqual(removed_indices, [])