[#144] Correct noncircular orbit generation#277
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR separates the generation of circular orbits from noncircular ones to avoid confusion around the altitude argument and introduces the new function random_circular_orbit.
- Added tests for random_circular_orbit and updated tests to use the new parameter a instead of alt.
- Updated the random_orbit API in src/bsk_rl/utils/orbital.py to handle the deprecated alt and r_body parameters.
- Updated documentation and release notes accordingly.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unittest/utils/test_orbital.py | Added and updated tests to include random_circular_orbit. |
| tests/integration/obs/test_int_relative_observations.py | Updated random_orbit calls to use parameter a instead of alt. |
| tests/integration/obs/test_int_observations.py | Updated random_orbit call to use new API parameter naming. |
| tests/integration/act/test_int_actions_discrete.py | Updated random_orbit call to use parameter a instead of alt. |
| src/bsk_rl/utils/orbital.py | Modified API and implementation for separating orbit types. |
| docs/source/release_notes.rst | Updated release notes to reflect the new orbit generation API. |
48480b7 to
ac953a0
Compare
dhutererprats
left a comment
There was a problem hiding this comment.
make r_body optional argument, so one can create a random orbit with just setting altitude
|
Also, I am seeing that we don't treat Omega and omega any differently in the random_orbit function when inclination is exactly i=0.0. Shouldn't we have some sort of reference, usually vernal equinox or so, to define the orbital elements of such an equatorial orbit? |
|
I think that's outside the scope of this issue, since we just inherit behavior from Basilisk for the oe to rv conversion. I think its up to the user to consider picking sensible observations, etc if they are using degenerate orbits. |
0f3daa7 to
bb398eb
Compare
|
Ah, I think I see what the confusion is coming from. |
bb398eb to
cf31ab8
Compare
Description
Separate :class:
random_circular_orbitand :class:random_orbitto avoid misleadingaltitude argument.
Type of change
How should this pull request be reviewed?
How Has This Been Tested?
Updated tests.
Checklist