Skip to content

Commit e5edf6a

Browse files
committed
Make indexing by non-integers an error
1 parent 7a2d581 commit e5edf6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/deprecations.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Removed with 0.16, indexing via non-integers
2+
getindex(itp::AbstractInterpolation{T,N}, i::Vararg{Number,N}) where {T,N} =
3+
error("Indexing an AbstractInterpolation by non-integers is no longer supported in Interpolations.jl since v0.16. Use the function calling interface instead: `itp(i...)`.")
4+
getindex(itp::AbstractInterpolation{T,N}, i::Vararg{ExpandedIndexTypes,N}) where {T,N} =
5+
error("Indexing an AbstractInterpolation by non-integers is no longer supported in Interpolations.jl since v0.16. Use the function calling interface instead: `itp(i...)`.")
26

37
for T in (:Throw, :Flat, :Line, :Free, :Periodic, :Reflect, :InPlace, :InPlaceQ)
48
@eval begin

0 commit comments

Comments
 (0)