-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add functions get_att_for_sun_pitch_yaw() and get_nsm_attitude() #38
Merged
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
On ARM we see ra, ra2 in last test: -22.95709102351021 -22.957091023510213 Not clear why but this is ignorable
jeanconn
reviewed
Aug 12, 2024
@taldcroft do you have an example of the code path that triggered the previous numba exception? |
In current flight:
This PR:
|
jeanconn
approved these changes
Aug 12, 2024
2 tasks
Merged
Merged
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 adds a new convenience function
get_att_for_sun_pitch_yaw()
which is roughly the inverse ofget_sun_pitch_yaw()
, namely return an attitude with the specified sun pitch, yaw, and off_nom_roll .It also migrates
chandra_maneuver.NSM_attitude()
to a function hereget_nsm_attitude()
, adding the option to specify the offsetpitch
angle.Additional changes
time / sun_ra / sun_dec
While in the code, I noticed a logical flaw in the handling of
time
,sun_ra
andsun_dec
in a few functions. The original logic was:The problem is that the user could supply
time=None
(meaning NOW) which satisfies "providing a time", but this would leavesun_ra=None
andsun_dec=None
and cause a confusing exception innumba
.The more robust logic is:
This won't ever fail and adheres to the broad idea that not providing a time implies NOW. Note: in some cases the code was already doing this but the docstring was wrong.
Docs
The docs have been converted to numpydoc format and generally improved.
Interface impacts
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
No functional testing.