open-space-collective / open-space-toolkit-physics

Physical units, time, reference frames, environment modeling.
https://open-space-collective.github.io/open-space-toolkit-physics/
Apache License 2.0
25 stars 7 forks source link

feat: add gravitational Earth constructor without required directory #256

Closed kyle-cochran closed 4 months ago

kyle-cochran commented 4 months ago

Currently when creating a gravitational model with specific degree/order, you must pass in a dummy directory to fill the argument slot:

earth = Earth(
  Type.EGM96,
  Directory.Undefined(),
  10,
  10,
)

This adds a new constructor so that the Directory is no longer required:

earth = Earth(
  Type.EGM96,
  10,
  10,
)
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.70%. Comparing base (471eed1) to head (0d6ca81).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #256 +/- ## ======================================= Coverage 80.69% 80.70% ======================================= Files 97 97 Lines 7599 7602 +3 ======================================= + Hits 6132 6135 +3 Misses 1467 1467 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.