-
Notifications
You must be signed in to change notification settings - Fork 142
🧹 code organization and dead code elimination #971
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
Codecov Report
@@ Coverage Diff @@
## master #971 +/- ##
==========================================
+ Coverage 86.73% 87.72% +0.98%
==========================================
Files 9 8 -1
Lines 1101 823 -278
==========================================
- Hits 955 722 -233
+ Misses 146 101 -45
Continue to review full report at Codecov.
|
It's quite satisfying to rip out large hunks of legacy code...thanks for starting this effort! |
9007b77
to
bad872f
Compare
At first, I only meant to clean some useless codes and upgrade to ImageCore 0.9, but it turns out that we're cleaning almost the entire
|
This is the complement to `varmult`. Useful for finishing JuliaImages/Images.jl#971
The |
I won't be available this week. I'll work on the |
No rush. I think it will be better to wait for you and do the whole thing before making the next release. But if you disagree, I can get this stuff finished and make a 0.25 release, and then we can do the rest in 0.26. |
This came from Images.jl and is part of the code clean-out making Images.jl mostly a "meta-package." It's also better to put glue functionality in one of the packages that defines the components, since that ensures that the glue-code is always available whenever the operation can be supported. xref JuliaImages/Images.jl#971
This came from Images.jl and is part of the code clean-out making Images.jl mostly a "meta-package." It's also better to put glue functionality in one of the packages that defines the components, since that ensures that the glue-code is always available whenever the operation can be supported. xref JuliaImages/Images.jl#971 This also deletes a schedule CI run, which risks disabling CI if activity is low.
OK, I think I've done all the ones you haven't carved out for yourself. I'm leaving |
For |
I'd be fine with either. We could also put it in ImageFiltering I guess? |
OK if I rebase this? It turns out #927 had a breakage. But if you have local changes I don't want to make it harder for you. |
Sure feel free to rebase |
e8a2118
to
5876d29
Compare
BTW, I know you are super-busy, so if you want to leave some of those items for later, that's fine. We could release a 0.25 and finish the rest in 0.26. Just wanted to let you know that it's not a contract! |
I wanna make sure that we get a stable I'm working on ROF now, let me see if I can finish this this weekend, will this be okay? |
Absolutely! I'm not in a rush, it's just that if it were to be, say, another couple months then maybe we'd want to think about an intermediate solution. |
0ab55b8
to
8bff142
Compare
This is a long journey, finally, we're so close. Every commit is carefully checked to be clean so that if we get into trouble we can quickly identify the issues. There are still some unchecked items in the todo-list but that doesn't block the new release. I thought we can get rid of the entire algorithm.jl file but turns out it takes more effort than I thought to modernize all the functions 😄 @timholy After this PR is merged we then need to update NEWS.md and the module docstring #982. I'll do this in the next few days. |
This commit introduces a new package IntegralArrays
This commit also removes old versions of ImageIO and ImageMagick from compat list. fixup
This requires ImageMorphology at least v0.3
This commit removes a lot of duplicated and lengthy import/export lines so that we can focus on a more high-level management of this umbrella package. This requires at least Reexport v1.1 to work
This version removes two deprecated symbols: `ssim` and `psnr`. This version also reimplemented the entropy function using ImageContrastAdjustment so that the function works on generic images.
- `accum` is removed - `graytype` is made an internal trait
8bff142
to
972d810
Compare
Thanks for all your efforts here. It is a ton of work, but the outcome feels like a major leap forward. 1.0 is starting to seem within sight... |
If there's no plan to review this PR then I think we can merge it and prepare for the v0.25 release. |
This came from Images.jl and is part of the code clean-out making Images.jl mostly a "meta-package." It's also better to put glue functionality in one of the packages that defines the components, since that ensures that the glue-code is always available whenever the operation can be supported. xref JuliaImages/Images.jl#971 This also deletes a schedule CI run, which risks disabling CI if activity is low.
This came from Images.jl and is part of the code clean-out making Images.jl mostly a "meta-package." It's also better to put glue functionality in one of the packages that defines the components, since that ensures that the glue-code is always available whenever the operation can be supported. xref JuliaImages/Images.jl#971 This also deletes a schedule CI run, which risks disabling CI if activity is low.
This came from Images.jl and is part of the code clean-out making Images.jl mostly a "meta-package." It's also better to put glue functionality in one of the packages that defines the components, since that ensures that the glue-code is always available whenever the operation can be supported. xref JuliaImages/Images.jl#971 This also deletes a schedule CI run, which risks disabling CI if activity is low.
By setting compatibility to ImageCore 0.9 only, there are a lot of legacy codes and compat patches being unnecessary now. This PR aims to clean the codebase.
TODO:
Base.depwarn(...; force=true)
closes #974
closes #976