Skip to content
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

Feature/322 simIncludeGravBody rewrite #501

Merged
merged 5 commits into from
Nov 25, 2023

Conversation

juan-g-bonilla
Copy link
Contributor

Description

The syntax suggested in #332 is supported. Old syntax is still supported.

Verification

All scenarios were updated to use the new syntax. Tests were not. Both scenarios and tests are passing.

To deprecate or not to deprecate

Should we deprecate the old syntax somehow? There is no harm in the old syntax being used, both the old and new syntax end up doing the same things under the hood.

Documentation

None.

Future work

Update tests so that they use the newer syntax.

Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the branch. I would leave the old method as well for now as it allows a spacecraft to be connected to a different set of gravity bodies. i.e., we can have a simulation where sc1 is subject to moon and earth, and sc2 is only subject to the moon. I don't think we can readily do this with your refactor/

src/simulation/environment/spiceInterface/spiceInterface.i Outdated Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Outdated Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Outdated Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Outdated Show resolved Hide resolved
src/utilities/simIncludeGravBody.py Show resolved Hide resolved
@schaubh schaubh self-assigned this Nov 21, 2023
@schaubh schaubh added the enhancement New feature or request label Nov 21, 2023
Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all built on macOS. Thanks for this contribution! You have been a generous contributor.

@schaubh schaubh merged commit fb0c915 into develop Nov 25, 2023
2 checks passed
@schaubh schaubh deleted the feature/322-simIncludeGravBody-rewrite branch November 25, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants