def test_time_scale_milliseconds_01(): ts = TimeScale(milliseconds=1) ticks = ts.ticks(0, 0.1) assert len(ticks) == 11 assert (np.array(ticks) == np.linspace(0.0, 0.1, 11)).all()
def test_time_scale_seconds_02(): ts = TimeScale(seconds=2) ticks = ts.ticks(0, 10) assert (np.array(ticks) == np.linspace(0.0, 10.0, 6)).all()