Exemplo n.º 1
0
def test_equation_of_center():
    assert_quantity_allclose(sun.equation_of_center("2012/11/11"),
                             -1.540 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.equation_of_center("2014/05/27"),
                             1.178 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.equation_of_center("2134/01/01"),
                             -0.161 * u.deg,
                             atol=1e-3 * u.deg)
Exemplo n.º 2
0
def test_equation_of_center():
    assert_array_almost_equal(sun.equation_of_center("2012/11/11"), -1.559 * u.deg, decimal=3)
    assert_array_almost_equal(sun.equation_of_center("2014/05/27"), 1.203 * u.deg, decimal=3)
    assert_array_almost_equal(sun.equation_of_center("2134/01/01"), -0.194 * u.deg, decimal=3)
Exemplo n.º 3
0
def test_equation_of_center():
    assert_quantity_allclose(sun.equation_of_center("2012/11/11"), -1.540 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.equation_of_center("2014/05/27"), 1.178 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.equation_of_center("2134/01/01"), -0.161 * u.deg, atol=1e-3 * u.deg)