Skip to content
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

Remove old deprecations, add new ones #1038

Merged
merged 1 commit into from
Jul 23, 2023
Merged

Remove old deprecations, add new ones #1038

merged 1 commit into from
Jul 23, 2023

Conversation

timholy
Copy link
Member

@timholy timholy commented Jul 23, 2023

This strips out the 0.25 deprecated code and adds the (minimal) deprecations for 0.26. There's a small issue with regards to what these deprecations should be (see JuliaImages/HistogramThresholding.jl#49), but the one added here is safe.

The process of removing the deprecated code from 0.25 revealed that the implementations in ImageContrastAdjustment are not drop-in replacements for the old code here. I decided to try to keep the old tests where possible; in cases where the test now fails, I marked it as @test_broken. It's not obvious to me that we actually want to fix them, but given that this process uncovered JuliaImages/ImageContrastAdjustment.jl#58, it seemed useful to keep them for now. But we might end up deleting the entire test/exposure.jl file soon.

One other related issue is that ImageContastAdjustment does not support alpha channels; again, it's unclear whether that was ever a good idea, so it's not obvious this is something that needs fixing.

Since this code has been deprecated, users should have switched over to the new ImageContrastAdjustment syntax, and no one has complained about the lack of alpha-channel support. So it seems OK to have the result be different than before and/or some operations now go unsupported.

@codecov
Copy link

codecov bot commented Jul 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -3.17 ⚠️

Comparison is base (4854014) 87.24% compared to head (f9978db) 84.07%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1038      +/-   ##
==========================================
- Coverage   87.24%   84.07%   -3.17%     
==========================================
  Files           6        4       -2     
  Lines         674      226     -448     
==========================================
- Hits          588      190     -398     
+ Misses         86       36      -50     
Impacted Files Coverage Δ
src/Images.jl 100.00% <ø> (ø)
src/algorithms.jl 87.87% <ø> (-4.13%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timholy timholy merged commit 7bdbc2a into master Jul 23, 2023
6 of 7 checks passed
@timholy timholy deleted the Update-deprecations branch July 23, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant