Skip to content

Commit

Permalink
Fix 0.5-dev deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Mar 30, 2016
1 parent d41c01c commit 874eae0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.3
Compat 0.3.6
Compat 0.7.13
12 changes: 6 additions & 6 deletions src/Dierckx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function reallycompact(a::Vector)
write(io, " ($(length(a)) elements)")
end
seekstart(io)
readall(io)
readstring(io)
end


Expand Down Expand Up @@ -707,11 +707,11 @@ function evalgrid(spline::Spline2D, x::AbstractVector, y::AbstractVector)
end

# call synonyms on v0.4+
if VERSION >= v"0.4.0"
Base.call(spl::Spline1D, x::Real) = evaluate(spl, x)
Base.call(spl::Spline1D, x::AbstractVector) = evaluate(spl, x)
Base.call(spl::Spline2D, x::Real, y::Real) = evaluate(spl, x, y)
Base.call(spl::Spline2D, x::AbstractVector, y::AbstractVector) =
@compat if VERSION >= v"0.4.0"
(spl::Spline1D)(x::Real) = evaluate(spl, x)
(spl::Spline1D)(x::AbstractVector) = evaluate(spl, x)
(spl::Spline2D)(x::Real, y::Real) = evaluate(spl, x, y)
(spl::Spline2D)(x::AbstractVector, y::AbstractVector) =
evaluate(spl, x, y)
end

Expand Down

0 comments on commit 874eae0

Please sign in to comment.