Add color1 to agasc fetch in centroid_dashboard #306
Merged
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
Add color1 to agasc fetch in centroid_dashboard.
This is required because of the changes in https://github.com/sot/chandra_aca/pull/170/files .
As COLOR1 is now used the the proseco acquisition mask, if calling code is using just a subset of columns, it needs that column too. It is a different question about if the calling code should just be getting everything, but this fix to just include COLOR1 is trivial.
Fixes issue that the calls in centroid dashboard plotting will fail on the bad acquisition mask and end up with "KeyError: 'COLOR1' " if run in an environment with the modern chandra_aca and proseco with mask using COLOR1.
Interface impacts
Testing
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests
I set the code around line 929 in centroid_dashboard.py to raise a generic exception instead of handling it with log and continue and then went through the motions to get data and plot for one obsid, showing the key error in the unpatched code and the lack of error in the patched code. Eventually centroid dashboard should get better unit tests.
Patched