Skip to content

Commit 5876d29

Browse files
committed
Fix broken depwarn & whitespace
From #927
1 parent 9424eaa commit 5876d29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/labeledarrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ associated with that point's label.
1818
This computation is performed lazily, as to be suitable even for large arrays.
1919
"""
2020
function ColorizedArray(intensity, label::IndirectArray{C,N}) where {C<:Colorant,N}
21-
depwarn("`ColorizedArray(intensity, label)` is deprecated, use `mappedarray(*, intensity, label)` from `MappedArrays` instead", :ColorizedArray)
21+
Base.depwarn("`ColorizedArray(intensity, label)` is deprecated, use `mappedarray(*, intensity, label)` from `MappedArrays` instead", :ColorizedArray)
2222

2323
axes(intensity) == axes(label) || throw(DimensionMismatch("intensity and label must have the same axes, got $(axes(intensity)) and $(axes(label))"))
2424
CI = typeof(zero(C)*zero(eltype(intensity)))

test/arrays.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ using Images.MappedArrays: mappedarray
66
labels = IndirectArray([1 2; 2 1], [RGB(1,0,0), RGB(0,0,1)])
77
colorized_A = @suppress_err ColorizedArray(intensity, labels)
88
mapped_A = mappedarray(*, intensity, labels)
9-
9+
1010
target = intensity .* labels
1111

12-
for A in (colorized_A, mapped_A)
12+
for A in (colorized_A, mapped_A)
1313
@test eltype(A) == RGB{Float64}
1414
@test size(A) == (2,2)
1515
@test axes(A) == (Base.OneTo(2), Base.OneTo(2))

0 commit comments

Comments
 (0)