-
Notifications
You must be signed in to change notification settings - Fork 303
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
Maintain categorical clavrx data as integer arrays #1792
Conversation
Keep old behavior for non-integer data
Codecov Report
@@ Coverage Diff @@
## main #1792 +/- ##
==========================================
- Coverage 92.90% 92.90% -0.01%
==========================================
Files 265 265
Lines 38970 38979 +9
==========================================
+ Hits 36205 36213 +8
- Misses 2765 2766 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks good to me. Is there anything else you wanted to do on this?
No. |
* Fix categorical data by making sure fill_value is applied as an integer. Keep old behavior for non-integer data * Test that int data remains integer after loading. * Add some type checking and check there is a _FillValue for int but not float Co-authored-by: Joleen Feltz <joleenf@ssec.wisc.edu>
Fixes bug that turns categorical data into float arrays after the valid_range is applied. This is done by using the fill value to fill the data outside of the valid_range for integer. This PR also adds tests to make verify that int arrays have _FillValue and remain integer, while float arrays have no _FillValue in the output attributes and remain float.