-
Notifications
You must be signed in to change notification settings - Fork 295
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
Change logic for ninjogeotiff gradient/axisintercept tags #2491
Change logic for ninjogeotiff gradient/axisintercept tags #2491
Conversation
In the ninjogeotiff writer, change the logic for deciding whether or not to set the tags AxisIntercept and Gradient. Previously, those were always set, unless the image had mode RGB or RGBA. With this change, those tags are set only if the image has mode L and LA and PhysicUnit is not set to N/A. This commit also makes a small bugfix in a data fixture in the test routine, that leads to a few reference values changing slightly. This reflects no change in functionality, but only between the fixtures and the test functions. Adapt documentation to reflect that NinJo 7 is now out and about.
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.
I think this looks good, even though I'm not familiar with the format. Just one question inline.
Codecov Report
@@ Coverage Diff @@
## main #2491 +/- ##
=======================================
Coverage 94.83% 94.83%
=======================================
Files 337 337
Lines 49430 49451 +21
=======================================
+ Hits 46875 46896 +21
Misses 2555 2555
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Pull Request Test Coverage Report for Build 5076940443
💛 - Coveralls |
CodeScene is wrong or unreasonable. It complains my method has increased to 92 lines of code, but I count only 33 physical or 13 logical lines of code (unless we include the docstring, which can't be right). The number of logical lines of code stays the same in this PR, and I have actually factored out some functionality. I do not agree with CodeScenes conclusion that the code health has decreased. |
code health is good enough for me, merged. |
In the ninjogeotiff writer, change the logic for deciding whether to set the tags AxisIntercept and Gradient. Previously, those were always set, unless the image had mode RGB or RGBA. With this change, those tags are set only if the image has mode L and LA and PhysicUnit is not set to N/A.
This commit also makes a small bugfix in a data fixture in the test routine, that leads to a few reference values changing slightly. This reflects no change in functionality, but only between the fixtures and the test functions.
Adapt documentation to reflect that NinJo 7 is now out and about.