def test_re_enumerate_sequence(self): self.assertEqual(utils.re_enumerate_sequence([3, 1, 8, 5, 8, 9]), [1, 0, 3, 2, 3, 4])
def translate(self): aux = self.series.copy() re_enumerated = utils.re_enumerate_sequence(aux.tolist()) return Contour(re_enumerated)