Exemple #1
0
def test_apparent_obliquity_of_ecliptic():
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2012/11/11"),
                             23.435 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2014/05/27"),
                             23.438 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2412/02/26"),
                             23.388 * u.deg,
                             atol=1e-3 * u.deg)
Exemple #2
0
def test_apparent_obliquity_of_ecliptic():
    assert_array_almost_equal(sun.apparent_obliquity_of_ecliptic("2012/11/11"), 23.435 * u.deg, decimal=3)
    assert_array_almost_equal(sun.apparent_obliquity_of_ecliptic("2014/05/27"), 23.438 * u.deg, decimal=3)
    assert_array_almost_equal(sun.apparent_obliquity_of_ecliptic("2412/02/26"), 23.388 * u.deg, decimal=3)
Exemple #3
0
def test_apparent_obliquity_of_ecliptic():
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2012/11/11"), 23.435 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2014/05/27"), 23.438 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_obliquity_of_ecliptic("2412/02/26"), 23.388 * u.deg, atol=1e-3 * u.deg)