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

refactor: Use the built-in State method to extract coordinates #235

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

kyle-cochran
Copy link
Contributor

Use the built-in State method to extract multiple subsets at once, which makes a private function in Propagator obsolete.

Also changes the Numerical Solver State to always be in the propagation Frame since we are always converting the coordinates to that Frame anyway. Otherwise if the input State ever had a different Frame that the Propagation Frame, it would just silently give you crazy numbers.

@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Merging #235 (c55aebd) into main (973343a) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
- Coverage   82.84%   82.79%   -0.05%     
==========================================
  Files          62       62              
  Lines        4756     4744      -12     
==========================================
- Hits         3940     3928      -12     
  Misses        816      816              
Files Coverage Δ
...aceToolkit/Astrodynamics/Trajectory/Propagator.cpp 94.73% <100.00%> (-0.44%) ⬇️

Base automatically changed from users/kyle/state-multiple-subsets to main October 9, 2023 23:45
Copy link
Contributor

@apaletta3 apaletta3 left a comment

Choose a reason for hiding this comment

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

Looks nice! I gotta get back into cpp lol

@kyle-cochran kyle-cochran force-pushed the users/kyle/simplify-state-extraction branch from f561f1d to c55aebd Compare October 10, 2023 18:40
@kyle-cochran kyle-cochran merged commit 9b7810a into main Oct 10, 2023
12 checks passed
@kyle-cochran kyle-cochran deleted the users/kyle/simplify-state-extraction branch October 10, 2023 22:50
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