-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from bluescarni/pr/elp2000
ELP2000
- Loading branch information
Showing
25 changed files
with
543 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2020, 2021, 2022, 2023 Francesco Biscani ([email protected]), Dario Izzo ([email protected]) | ||
# | ||
# This file is part of the heyoka.py library. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla | ||
# Public License v. 2.0. If a copy of the MPL was not distributed | ||
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
import unittest as _ut | ||
|
||
|
||
class elp2000_test_case(_ut.TestCase): | ||
# Just a small basic test. | ||
def test_basic(self): | ||
from . import make_cfunc | ||
from .model import elp2000_cartesian_e2000, elp2000_cartesian_fk5 | ||
|
||
sol = elp2000_cartesian_e2000(thresh=1e-5)[0] | ||
cf = make_cfunc([sol]) | ||
|
||
date = 2469000.5 | ||
self.assertAlmostEqual(cf([], time=(date - 2451545.0) / 36525)[0], -361605.79234692274) | ||
|
||
sol = elp2000_cartesian_fk5(thresh=1e-5)[0] | ||
cf = make_cfunc([sol]) | ||
|
||
self.assertAlmostEqual(cf([], time=(date - 2451545.0) / 36525)[0], -361605.7668217605) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2020, 2021, 2022, 2023 Francesco Biscani ([email protected]), Dario Izzo ([email protected]) | ||
# | ||
# This file is part of the heyoka.py library. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla | ||
# Public License v. 2.0. If a copy of the MPL was not distributed | ||
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
import unittest as _ut | ||
|
||
|
||
class vsop2013_test_case(_ut.TestCase): | ||
# Just a small basic test. | ||
def test_basic(self): | ||
from . import make_cfunc | ||
from .model import vsop2013_elliptic, vsop2013_cartesian | ||
|
||
sol = vsop2013_elliptic(1, 1) | ||
cf = make_cfunc([sol]) | ||
|
||
date = 2411545.0 | ||
self.assertAlmostEqual(cf([], time=(date - 2451545.0) / 365250)[0], 0.3870979635) | ||
|
||
sol = vsop2013_cartesian(1, thresh=1e-8) | ||
cf = make_cfunc([sol[0]]) | ||
|
||
self.assertAlmostEqual(cf([], time=(date - 2451545.0) / 365250)[0], 0.3493879042) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.