Skip to content

Commit

Permalink
gtr equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Nov 29, 2024
1 parent ad77a80 commit eb13667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divergences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct InplaceDivergence{D<:AbstractDivergence, T} <: AbstractDivergence
img::T
mimg::T
function InplaceDivergence(div::D, img::IntensityMap) where {D<:AbstractDivergence}
all(>(0), img) || throw(ArgumentError("All intensities must be positive."))
all(>=(0), img) || throw(ArgumentError("All intensities must be positive."))
nimg = img./flux(img)
T = typeof(nimg)
return new{D,T}(div, nimg, zero(nimg))
Expand Down

0 comments on commit eb13667

Please sign in to comment.