def test_numeric_sequence_example_nonzero_base(self): from multicov.alphabet import NumericAlphabet alpha = NumericAlphabet(5, 10) self.assertTrue(np.array_equal(alpha.from_int([3, 0, 2, 4]), [8, 5, 7, 9]))
def test_numeric_sequence_example_base0(self): from multicov.alphabet import NumericAlphabet alpha = NumericAlphabet(10) self.assertTrue(np.array_equal(alpha.from_int([8, 0, 4, 2]), [8, 0, 4, 2]))