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

feat: enrich StateBuilder capabilities #239

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

phc1990
Copy link
Contributor

@phc1990 phc1990 commented Oct 11, 2023

Add StateBuilder features:

  • StateBuilder +/- CoordinateSubset operators
  • State reduction
  • State expansion

Additional:

  • Renaming buildState -> build
  • Fix minor "bug" where State == comparator was not assessing number of coordinates

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #239 (ff6b1ce) into main (9b6e93a) will increase coverage by 0.22%.
The diff coverage is 98.59%.

@@            Coverage Diff             @@
##             main     #239      +/-   ##
==========================================
+ Coverage   83.01%   83.23%   +0.22%     
==========================================
  Files          63       63              
  Lines        4804     4874      +70     
==========================================
+ Hits         3988     4057      +69     
- Misses        816      817       +1     
Files Coverage Δ
...penSpaceToolkit/Astrodynamics/Trajectory/State.cpp 100.00% <100.00%> (ø)
...eToolkit/Astrodynamics/Trajectory/StateBuilder.cpp 99.18% <98.55%> (-0.82%) ⬇️

Copy link
Contributor

@kyle-cochran kyle-cochran left a comment

Choose a reason for hiding this comment

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

These are good and I think we should keep them, but I think we will also need some additional functions to operate on the State.
I.e. given a high dimensional State and a low dimensional Builder, produce a low dimensional state
also:
given a low dimensional state, a high dimensional builder, and a default values state, produce a high dimensional state

@phc1990 phc1990 changed the title feat: add expand/contract capabilities to StateBuilder feat: enrich StateBuilder capabilities Oct 11, 2023
@phc1990 phc1990 marked this pull request as draft October 11, 2023 17:16
Copy link
Contributor

@kyle-cochran kyle-cochran left a comment

Choose a reason for hiding this comment

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

small nit suggestions for error printing (can just implement them on the base MR if it's annoying to rebase)

@kyle-cochran kyle-cochran force-pushed the users/kyle/add-state-builder branch from 0600f2a to 00aa429 Compare October 11, 2023 20:34
@kyle-cochran kyle-cochran force-pushed the users/pau/add-state-builder-suggestions branch from 000a8cd to b969467 Compare October 11, 2023 20:58
Base automatically changed from users/kyle/add-state-builder to main October 11, 2023 21:17
@phc1990 phc1990 force-pushed the users/pau/add-state-builder-suggestions branch from 13f5ab5 to 250ed7a Compare October 12, 2023 14:21
kyle-cochran and others added 2 commits October 12, 2023 18:32
author Kyle Cochran <kyle.cochran@loftorbital.com> 1696962698 +0000
committer Pau Hebrero <pau.hebrero@gmail.com> 1697119993 +0000

chore: rebase
@phc1990 phc1990 force-pushed the users/pau/add-state-builder-suggestions branch from 5abe6fd to ff6b1ce Compare October 12, 2023 18:32
@phc1990 phc1990 marked this pull request as ready for review October 12, 2023 18:33
@phc1990
Copy link
Contributor Author

phc1990 commented Oct 12, 2023

Rebased and ready for review, see updated description.

Copy link
Contributor

@vishwa2710 vishwa2710 left a comment

Choose a reason for hiding this comment

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

I will let @kyle-cochran have the final approval but this looks great to me!

Copy link
Contributor

@kyle-cochran kyle-cochran left a comment

Choose a reason for hiding this comment

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

2 small comments, otherwise lgtm!

@kyle-cochran kyle-cochran merged commit e93ad85 into main Oct 12, 2023
12 checks passed
@kyle-cochran kyle-cochran deleted the users/pau/add-state-builder-suggestions branch October 12, 2023 20:58
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