-
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
get_aca_images()
returns MaskedColumns only for data with masked values (except IMG)
#182
Conversation
431826e
to
e024673
Compare
get_aca_images()
returns MaskedColumns only for data with masked valuesget_aca_images()
returns MaskedColumns only for data with masked values (except IMG)
Good catch on the kalman_watch warning introduced by #181. Should we add a vstack test? |
I already spent way too much time on this. The issue is really a bigger one that we have to be generally careful about adding metadata to Tables that might be used in table operations. But I'm pretty sure we won't fall into that trap again in this particular function, so adding the test isn't likely to help. |
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 suggestion.
Comments skipped due to low confidence (1)
chandra_aca/maude_decom.py:1408
- [nitpick] The 'set_times_metadata' parameter is not mentioned in the docstring of 'get_aca_images'. Consider adding it for clarity, even if it's undocumented.
set_times_metadata = kwargs.pop("set_times_metadata", false)
Description
Change
get_aca_images()
so that it converts theMaskedColumn
columns fromget_aca_packets
toColumn
if there are no masked elements.The only columns that can actually be missing are: 'BGDRMS', 'TEMPCCD', 'TEMPHOUS', 'TEMPPRIM', 'TEMPSEC', 'BGDSTAT'. These columns are not present in 4x4 images, so any query that includes 4x4 images will have these masked.
The 'IMG' column is still always masked because the mask has a slightly different meaning, namely providing the data mask for 4x4 and 6x6 images.
Unrelated fix
Functional testing with kalman_watch showed a problem with #181, namely that merging (
vstack
) of image tables with atimes
metadata caused warnings:So this PR changes that
times
meta attribute to be opt-in for testing via an undocumented keyword argset_times_metadata
.Interface impacts
Column types are changed.
aca_view
does not callget_aca_images()
.get_aca_images()
iskalman_watch
, so this is functionally tested.Requires
Requires
masters
environment (at leastCxoTime.linspace()
).Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
Ran
kalman_watch
task_schedule tasks on Mac inmasters
environment with this PR in the PYTHONPATH.No errors or warnings were produced and the outputs look reasonable:
https://icxc.cfa.harvard.edu/aspect/test_review_outputs/chandra_aca/pr-182/kw3/