-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: Move BlackIs1 functionality to tiff_header #3421
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
Conversation
Also correct types in CCITTParameters.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3421 +/- ##
=======================================
Coverage 96.97% 96.97%
=======================================
Files 54 54
Lines 9323 9324 +1
Branches 1707 1708 +1
=======================================
+ Hits 9041 9042 +1
Misses 168 168
Partials 114 114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Stefan <[email protected]>
Co-authored-by: Stefan <[email protected]>
It would be easier to have defaults in Lines 589 to 596 in 56f0eaa
But then if they are not retrieved they would be None. The design of this could be better. |
This is wrong. The default value currently seems to be 0 instead of 1728. The main change we would have to do here would be creating the dataclass instance at the beginning and writing its attributes directly. |
So we need to change the default to be 1728. Then initiate the dataclass, obtaining the defaults from CCITTParameters? If all the defaults (from the specification) are there then it is easier to understand. |
The test does not use the new variable. Is this error saying although it is unused in the test it needs to be used, kinda like coverage tests? |
You never initialize this variable in the This should be solved by implementing the proposal from #3421 (comment) as well. |
Co-authored-by: Stefan <[email protected]>
@stefan6419846 do you know how to fix the new set of errors? |
Not directly. You might want to try setting |
Agree to fix
|
## What's new ### Security (SEC) - Limit decompressed size for FlateDecode filter (#3430) by @stefan6419846 ### Deprecations (DEP) - Drop Python 3.8 support (#3412) by @stefan6419846 ### New Features (ENH) - Move BlackIs1 functionality to tiff_header (#3421) by @j-t-1 ### Robustness (ROB) - Skip Go-To actions without a destination (#3420) by @badGarnet ### Developer Experience (DEV) - Update code style related libraries (#3414) by @stefan6419846 - Update mypy to 1.17.0 (#3413) by @stefan6419846 - Stop testing on Python 3.8 and start testing on Python 3.14 (#3411) by @stefan6419846 ### Maintenance (MAINT) - Cleanup deprecations (#3424) by @stefan6419846 [Full Changelog](5.9.0...6.0.0)
Also correct types in CCITTParameters.