# Path: skyfield/api.py
# N = E = +1.0
# S = W = -1.0


from numpy import arange, diff
from skyfield.api import Topos, load
"""Hand-crafted tests against specific NOVAS behaviors.

The tests in the neighboring `tests_against_novas.py` are automatically
generated and in general demonstrate close agreement with NOVAS.  But
the hand-crafted tests here are aimed at specific edge conditions that
we want to make sure we get correct.

"""

def test_earth_deflection():
    # The NOVAS library includes the Earth's gravitational deflection of
    # light for both topocentric observers and observers in Earth orbit,
    # but shuts this effect off once the object is behind the Earth 20%
    # of the way from its limb towards its center.  This test determines
    # whether Skyfield puts the resulting discontinuity in the same
    # place as the NOVAS library does.
    #
    # For more details see:
    # https://github.com/skyfielders/astronomy-notebooks/blob/master/Skyfield-Notes/Fixing-earth-deflection.ipynb


# Path: skyfield/api.py
# N = E = +1.0
# S = W = -1.0


# Path: skyfield/tests/test_earth_deflection.py
from numpy import arange, diff
from skyfield.api import Topos, load

"""Hand-crafted tests against specific NOVAS behaviors.

The tests in the neighboring `tests_against_novas.py` are automatically
generated and in general demonstrate close agreement with NOVAS.  But
the hand-crafted tests here are aimed at specific edge conditions that
we want to make sure we get correct.

"""

def test_earth_deflection():
    # The NOVAS library includes the Earth's gravitational deflection of
    # light for both topocentric observers and observers in Earth orbit,
    # but shuts this effect off once the object is behind the Earth 20%
    # of the way from its limb towards its center.  This test determines
    # whether Skyfield puts the resulting discontinuity in the same
    # place as the NOVAS library does.
    #
    # For more details see:
    # https://github.com/skyfielders/astronomy-notebooks/blob/master/Skyfield-Notes/Fixing-earth-deflection.ipynb


    t = load.timescale(delta_t=0.0)