def test_sidereal(time): pytest.importorskip("astropy") # http://www.jgiesen.de/astro/astroJS/siderealClock/ tsr = pmd.datetime2sidereal(time, radians(lon), False) if isinstance(tsr, list): tsr = tsr[0] assert tsr == approx(sra, rel=1e-5)
def test_sidereal_vallado(time): tsr = pmd.datetime2sidereal(time, radians(lon), True) if isinstance(tsr, list): tsr = tsr[0] assert tsr == approx(sra, rel=1e-5)
def test_sidereal_vallado(time): assert pmd.datetime2sidereal(time, np.radians(lon), True) == approx(sra, rel=1e-5)
def test_sidereal(time): pytest.importorskip('astropy') # http://www.jgiesen.de/astro/astroJS/siderealClock/ assert pmd.datetime2sidereal(time, np.radians(lon), False) == approx(sra, rel=1e-5)
def test_sidereal_vallado(time): assert pmd.datetime2sidereal(time, np.radians(lon), True) == approx(sra, rel=1e-5)
def test_sidereal(time): pytest.importorskip('astropy') # http://www.jgiesen.de/astro/astroJS/siderealClock/ assert pmd.datetime2sidereal(time, np.radians(lon), False) == approx(sra, rel=1e-5)