From d24c187ce59ddcaf4ebd76aa30cbb8a6a5b813e6 Mon Sep 17 00:00:00 2001 From: "Michael K. Borregaard" Date: Tue, 30 May 2017 21:19:16 +0200 Subject: [PATCH] edit comment --- src/Plots.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plots.jl b/src/Plots.jl index 68c0308f..d17af86a 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -106,8 +106,8 @@ export # --------------------------------------------------------- -# define functions (e.g. `_extrema`, that uses the NaNMath version (which ignores NaNs)) when the type is applicable -for fun in (:extrema, :minimum, :maximum, :mean) +# define functions (e.g. `_extrema`, that ignores NaNs, when the type is applicable. To overcome the destructive effects of https://github.com/JuliaLang/julia/pull/12563 +for fun in (:extrema, :minimum, :maximum) @eval $(Symbol(string("_",fun))){F<:AbstractFloat}(x::AbstractArray{F}) = Base.$(fun)(filter(!isnan,x)) @eval $(Symbol(string("_",fun)))(x) = Base.$(fun)(x) end