-
Notifications
You must be signed in to change notification settings - Fork 23
Switch to oneunit (and other smaller changes)
#80
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
|
|
||
| one{C<:AbstractRGB}(::Type{C}) = C(1,1,1) | ||
| one{C<:TransparentRGB}(::Type{C}) = C(1,1,1,1) | ||
| oneunit{C<:AbstractRGB}(::Type{C}) = C(1,1,1) |
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.
If you use where, you'll avoid deprecation warnings on 0.7.
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 want to save some work so that femocleaner feels valued. Even bots have feelings.
src/ColorVectorSpace.jl
Outdated
| for f in (:min, :max) | ||
| @eval begin | ||
| @deprecate($f{T<:Gray}(x::Number, y::AbstractArray{T}), | ||
| @compat $f.(x, y)) |
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.
Since the package no longer supports 0.4, you can drop the @compat for dot broadcast.
Gray is the only one with an order, so no other colorants make sense
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
=========================================
+ Coverage 67.16% 75.87% +8.7%
=========================================
Files 2 1 -1
Lines 265 199 -66
=========================================
- Hits 178 151 -27
+ Misses 87 48 -39
Continue to review full report at Codecov.
|
Base julia has distinguished
oneandoneunit, and we should do so, too. This is sure to cause quite a few deprecation warnings in dependent packages (e.g., Images).This also adds support for
middleand fixes #56 (in separate commits).