question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test cases based on Orekit

See original GitHub issue

From https://github.com/poliastro/poliastro/wiki/Validation : Orekit is an open-source space dynamics library written in Java. A Python wrapper is maintained by @petrushy (https://gitlab.orekit.org/orekit-labs/python-wrapper), which allows to include Orekit in the test cases.

🎯 Goal

Validate poliastro against Orekit

📋 Steps

  • Include Orekit as a dependency in [options.extras_require] in setup.cfg. Orekit is distributed only via conda, how can we proceed?
  • Import Orekit data files, which contain Earth Orientation Parameters, leap seconds history, etc. It is maintained in https://gitlab.orekit.org/orekit/orekit-data. There are several possibilities:
    1. Download it as a zip somewhere in the repo and let this method do the job: https://gitlab.orekit.org/orekit-labs/python-wrapper/blob/master/python_files/pyhelpers.py#L37
    2. Unzip the current version in a folder somewhere in the repo
    3. Have the Git repository synchronized as a submodule. Probably too much effort for the moment
    4. Do not store the data in the repo, download it when installing poliastro (dev), by including it in setup.cfg
    • Common for all four possibilities: where is it best to store the data? In a folder named data in the root folder? Or is it poliastro’s philosophy not to store any data in the repo? I did not see any SPICE kernel or anything in the repo, just code.
  • Write test cases 😃 Given that Orekit requires to start a JVM, I would rather write the test cases in separate files, what do you think?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GorgiAstrocommented, Oct 15, 2019

In case anyone tries to run the Orekit test cases (still in a private branch), beware that the Python wrapper does not work with doctest at the moment, the test cases will return errors&warnings. This is probably due to JCC, the issue is being investigated by the kind Petrus: https://issues.apache.org/jira/browse/PYLUCENE-51

0reactions
astrojuanlucommented, Feb 13, 2021

@jorgepiloto started working on this as part of our NumFOCUS Small Development grant, see latest activity on https://github.com/poliastro/validation/. Thanks @GorgiAstro for pioneering this work! Closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

src/test/java/org/orekit/estimation/sequential ...
Orekit is a free low level space dynamics library written in Java. It provides basic elements (orbits, dates, attitude, frames, .
Read more >
Unitary tests for the numerical propagator (#96) · Issues
We propose to extract some use cases to improve OREKIT unitary tests. These tests would cover some of the more significant use cases...
Read more >
src/test/java/org/orekit/estimation/iod/IodLaplaceTest.java
Estimate the orbit of ISS (ZARYA) based on Keplerian motion. 78. @Test. 79. public void testLaplaceKeplerian1() {.
Read more >
Tutorials - Orekit
The tests suite is the first place to look for getting help with Orekit ... with the source code in order to emphazise...
Read more >
Frequently Asked Questions (FAQ) - Orekit
Our tests show the new frames are compliant with reference cases to about 10mm for LEO and 60mm for GEO. The TLE package...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found