-
Notifications
You must be signed in to change notification settings - Fork 12
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
DAS-2280: Update HyBIG reference images 1-band (colour test) #125
base: main
Are you sure you want to change the base?
DAS-2280: Update HyBIG reference images 1-band (colour test) #125
Conversation
177e408
to
a5bc9af
Compare
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.
Review the small code changes and ran the HyBIG regression tests with the new image both before and after the update reference files, and all the tests passed. The final notebook test failed in main
as expected, and passed in this branch with the updated references.
This is ready to merge when SIT has HyBIG v2.2.0. I am going to wait until after the new year before doing that though... |
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.
The reference file updates look good, and make sense given the changes in DAS-2280.
Should this PR also have a bump for the regression test Docker image? Feels like it should, and that it would be a patch version maybe?
It should have a bump in version. As so the type, I was thinking none of semver makes sense with these changes. We're not keeping up with the service version and these are sort of all over the place. I've just adopted incrementing the patch. I can bump it to whatever but I don't think there's a lot of value in trying to make these semver. |
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. Agreed that the semver bump feels a little difficult to quantify, and I'm fine with a minor version for it.
I obviously was blind with your comment, I'll put it back to patch like I was doing. I kind of wish we just had increasing digits. |
When nasa/harmony-browse-image-generator#41 gets merged, you can run these tests.
Description
Updates the reference images for "Test that demonstrates variable selection for custom colour maps"
The changes in DAS-2280 (nasa/harmony-browse-image-generator#41 / part-a) now treat nodata and transparent the same.
The differences in the image are nearly exclusively metadata related.
One differences is that the new image now has a "nodata" value specified in the metadata of 255.
New reference:
Old Reference
This is a function of how writing a PNG with multiple all-transparent
values in the color map. If there is only one rgba of (0,0,0,0) that index is set to the
NoData
value in the PNG metadata. Ifthere are > 1 all-transparent values, none are listed in the metadata.
That brings us to the second metadata difference.
Last values of color lookup tabes:
New Reference:
Old Reference:
Before we had a transparent and nodata pixel in values 254 and 255, now we only use the 255 as both.
The image data has changed only in that values of 254 are now 255. You can / will verify this with the instructions below.
Jira Issue ID
DAS-2280
Local Test Steps
Before you start, you need to generate images to compare against the existing reference images. So check out this repository's
main
and edit the last test's cell as described below:Run this notebook against the new changes in HyBIG.
When this last cell runs, it will drop the files into
./new_results
and we can compare them with the oldreference_data
.Copy this cell below the test that just failed and you should be able to verify that the only change between the reference_data and new data is that values that were 254 are now 255. (Along with the previously described metadata differences.)
This should convince you that the change are as expected.
Now do a normal validation by reverting the changes to the ipython notebook, Checking out this branch, and running the regression against your local Harmony-In-A-Box.
PR Acceptance Checklist