示例#1
0
    def test(self):
        # Rescale Test
        seq = SvSequence([0, 1, 2])
        seq.rescale(0, 1000, inplace=True)

        self.assertAlmostEqual(seq[0].offset, 0)
        self.assertAlmostEqual(seq[1].offset, 500)
        self.assertAlmostEqual(seq[2].offset, 1000)
示例#2
0
 def test(self):
     # Quick Init Mixed
     seq = SvSequence([100, 200, 60, 400])
     seq.rescale(300, 800, inplace=True)