예제 #1
0
def test_t02():
    obj = Ta()
    obj._t = np.linspace(-1, 9, 11)
    obj.t0 = 1
    obj.set_t0(-5)
    assert (obj._t - np.linspace(4, 14, 11)).all() == 0
    assert obj.t0 == -4
예제 #2
0
def test_t0():
    obj = Ta()
    obj._t = np.linspace(0, 10, 11)
    obj.t0 = 0
    obj.set_t0(1)
    assert (obj._t - np.linspace(-1, 9, 11)).all() == 0
    assert obj.t0 == 1