Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Silence remaining warnings on load
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Jul 30, 2015
1 parent b8200d6 commit f783cd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/deprecated.jl
@@ -1,6 +1,7 @@
# Note: These methods need a more helpfull error message than a `NoMethodError`,
# when the deprecation is removed
import Base.@deprecate
import Base.Operators: /
@deprecate (/)(x::Union(NAtype,Number),A::AbstractDataArray) x ./ A

#' @description
Expand Down
4 changes: 4 additions & 0 deletions src/reduce.jl
Expand Up @@ -103,6 +103,10 @@ function Base.mapreduce(f, op::Function, A::DataArray; skipna::Bool=false)
skipna ? _mapreduce_skipna(f, op, A) : Base._mapreduce(f, op, A)
end

# To silence deprecations, but could be more efficient
Base.mapreduce(f, op::Union(Base.OrFun, Base.AndFun), A::DataArray; skipna::Bool=false) =
skipna ? _mapreduce_skipna(f, op, A) : Base._mapreduce(f, op, A)

Base.mapreduce(f, op, A::DataArray; skipna::Bool=false) =
skipna ? _mapreduce_skipna(f, op, A) : Base._mapreduce(f, op, A)

Expand Down

0 comments on commit f783cd1

Please sign in to comment.