Skip to content

Commit

Permalink
CompatHelper: bump compat for StatsBase to 0.34, (keep existing compa…
Browse files Browse the repository at this point in the history
…t) (#1025)

* CompatHelper: bump compat for StatsBase to 0.34, (keep existing compat)

* use isapprox, to be resilient against floatingpoint errors

---------

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
Co-authored-by: Simon <sdanisch@gmail.com>
  • Loading branch information
3 people committed May 22, 2023
1 parent 401d146 commit eadbc9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ IndirectArrays = "0.5, 1"
IntegralArrays = "0.1"
Reexport = "1.1"
StaticArrays = "0.8, 0.9, 0.10, 0.11, 0.12, 1.0"
StatsBase = "0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33"
StatsBase = "0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33, 0.34"
Suppressor = "0.2"
TiledIteration = "0.2, 0.3"
julia = "1.3"
Expand Down
2 changes: 1 addition & 1 deletion test/exposure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ eye(m,n) = Matrix{Float64}(I,m,n)
img = reinterpret(Gray{N0f8}, [0x00,0x40,0x80,0xd0])
@test imhist(img, 5) == (0.0:0.2:1.0,[0,1,1,1,0,1,0])
img = reinterpret(Gray{N0f8}, [0x00,0x40,0x80,0xff])
@test imhist(img, 6) == (0.0:0.2:1.2,[0,1,1,1,0,0,1,0])
@test all(().(imhist(img, 6), (0.0:0.2:1.2,[0,1,1,1,0,0,1,0])))

# Consider an image where each intensity occurs only once and vary the number
# of bins used in the histogram in powers of two. With the exception of the
Expand Down

0 comments on commit eadbc9e

Please sign in to comment.