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

Return propagated orbits with original origins and frame based on inp… #116

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

akoumjian
Copy link
Contributor

…ut orbit_id

This updates the high level .propagate_orbits method to return orbits with their original Origin and frame. Now this logic will hold for all pluggable backends for the Propagator class.

Copy link
Member

@ntellis ntellis left a comment

Choose a reason for hiding this comment

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

Looks good to me, I have (minimally) tested it locally.

Comment on lines -24 to -30
# Test to see that at least one impact-enabled propagator is
# installed and if not print a warning
if importlib.util.find_spec("adam_core.propagator.adam_assist") is None:
logger.warning(
"No impact-enabled propagator installed. Impact calculations will not be possible."
)

Copy link
Member

Choose a reason for hiding this comment

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

Is it worth leaving this in in case one only has pyoorb?

Copy link
Contributor Author

@akoumjian akoumjian Aug 14, 2024

Choose a reason for hiding this comment

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

No, I decided it was better to simply error out when trying to run a propagator without the impact mixin. The warning was getting triggered inadvertently.

src/adam_core/propagator/propagator.py Outdated Show resolved Hide resolved
@akoumjian akoumjian merged commit 941e3fb into main Aug 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants