'Besselian and julian epoch transforms'

def test_epoch_transform(self):

    jd = 2457073.05631
    t = Time(jd, format='jd', scale='tai', precision=6)
    assert allclose_year(t.byear, 2015.1365941020817)
    assert allclose_year(t.jyear, 2015.1349933196439)
    assert (t.byear_str == 'B2015.136594')
    assert (t.jyear_str == 'J2015.134993')
    t2 = Time(t.byear, format='byear', scale='tai')
    assert allclose_jd(t2.jd, jd)
    t2 = Time(t.jyear, format='jyear', scale='tai')
    assert allclose_jd(t2.jd, jd)
    t = Time('J2015.134993', scale='tai', precision=6)
    assert np.allclose(t.jd, jd, rtol=1e-10, atol=0)
    assert (t.byear_str == 'B2015.136594')
