@pytest.mark.parametrize(u'st', spacetimes)
def test_atciqd_aticq(st):
 (t, pos) = st
 (jd1, jd2) = get_jd12(t, u'tdb')
 (astrom, _) = erfa.apci13(jd1, jd2)
 (ra, dec) = pos
 ra = ra.value
 dec = dec.value
 assert_allclose(erfa.atciqd(ra, dec, astrom), atciqd(ra, dec, astrom))
 assert_allclose(erfa.aticq(ra, dec, astrom), aticq(ra, dec, astrom))

@ pytest . mark . parametrize ( u'st' , spacetimes ) def test_atciqd_aticq ( st ) : ( t , pos ) = st ( jd1 , jd2 ) = get_jd12 ( t , u'tdb' ) ( astrom , _ ) = erfa . apci13 ( jd1 , jd2 ) ( ra , dec ) = pos ra = ra . value dec = dec . value assert_allclose ( erfa . atciqd ( ra , dec , astrom ) , atciqd ( ra , dec , astrom ) ) assert_allclose ( erfa . aticq ( ra , dec , astrom ) , aticq ( ra , dec , astrom ) )
check replacements against erfa versions for consistency .