-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple KeplerianOrbit from GravityEffector #5
Merged
patkenneally
merged 5 commits into
develop
from
refactor/decouple-keplarian-orbit-from-gravityEffector
Dec 16, 2022
Merged
Decouple KeplerianOrbit from GravityEffector #5
patkenneally
merged 5 commits into
develop
from
refactor/decouple-keplarian-orbit-from-gravityEffector
Dec 16, 2022
Conversation
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
Former-commit-id: abf9001d6345caf89a3fe3a6d75dfba1742ad5ed Former-commit-id: 1a25a192811f5d584c42e40a9e14f4275345174c
patkenneally
force-pushed
the
refactor/decouple-keplarian-orbit-from-gravityEffector
branch
from
December 15, 2022 21:54
bca364e
to
19515e5
Compare
patkenneally
changed the title
[REFACTOR] Decouple keplarian orbit from gravity effector
[REFACTOR] Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
patkenneally
changed the title
[REFACTOR] Decouple KeplerianOrbit from GravityEffector
[resolve #6] Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
patkenneally
changed the title
[resolve #6] Decouple KeplerianOrbit from GravityEffector
[refactor] Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
patkenneally
changed the title
[refactor] Decouple KeplerianOrbit from GravityEffector
[GH-6] Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
patkenneally
changed the title
[GH-6] Decouple KeplerianOrbit from GravityEffector
[refactor] Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
patkenneally
changed the title
[refactor] Decouple KeplerianOrbit from GravityEffector
Decouple KeplerianOrbit from GravityEffector
Dec 15, 2022
schaubh
requested changes
Dec 16, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there, just small changes.
This change seek primarily seeks to establish discipline in preventing "use-before-set" possibilities. Generally member data should be initialized in-class or in a constructor initialization list. See C++ Core Guidelines C.48 and C.49
patkenneally
force-pushed
the
refactor/decouple-keplarian-orbit-from-gravityEffector
branch
from
December 16, 2022 01:48
19515e5
to
44fbc26
Compare
schaubh
approved these changes
Dec 16, 2022
patkenneally
deleted the
refactor/decouple-keplarian-orbit-from-gravityEffector
branch
December 16, 2022 04:14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is a refactoring and introduces no new functionality. The
KeplerianOrbit
module's coupling withGravityEffector.GravBodyData
is undesirable. TheKeplerianOrbit
module is using the GravBodyData to get at the mu gravitational constant parameter. No other feature/aspect of the module needs theGravBodyData
type. We should uncouple these two and change theKeplerianOrbit
module to take a mu value which is obtained from a source of truth location such asastroConstants.h
. Decoupling these also provides a simpler generated Python API where the user of theKeplerianOrbit
module won't be surprised that theGravBodyData
type appears. Rather, users are coached to use single source of truth APIs to get at constants.Verification
The unit tests for the module were updated to account for this change in api.
Documentation
Doc strings in the module are updated
Future work
None