def test_get_state_between_switch_points(self): t = np.array([0, 1, 2]) y = np.array([False, True, False]) bts = BooleanTimeSeries(t, y, 3) self.assertEqual(True, bts.get_state(1.5))
def test_get_state_at_end(self): t = np.array([0, 1, 2]) y = np.array([False, True, False]) bts = BooleanTimeSeries(t, y, 3) self.assertEqual(False, bts.get_state(3))