LLNL / SSAPy

A Python package allowing for fast and precise orbital modeling.
https://software.llnl.gov/SSAPy/
MIT License
36 stars 8 forks source link

Refactor tests to simplify sampling of LEO and GEO orbits #40

Open JasonBernstein1 opened 2 months ago

JasonBernstein1 commented 2 months ago

Several tests in tests/test_accel.py and tests/test_orbit.py rely on randomly sampling LEO or GEO orbits. Each time the sampling is done, the same lines of code are repeated. This pull request extracts the orbit sampling code into functions in tests/ssapy_test_helpers.py so that less code is repeated in the tests.