From cd187e6d886a2eb776151881bd4c53420c641324 Mon Sep 17 00:00:00 2001 From: Israel Herraiz Date: Thu, 13 Sep 2018 12:35:43 +0200 Subject: [PATCH] indices was renamed to axes in Julia 0.7 --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index c53f78642c..0ca38d1445 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -24,7 +24,7 @@ julia> chunk(1:10, 3) """ chunk(xs, n) = collect(Iterators.partition(xs, ceil(Int, length(xs)/n))) -batchindex(xs, i) = (reverse(Base.tail(reverse(indices(xs))))..., i) +batchindex(xs, i) = (reverse(Base.tail(reverse(axes(xs))))..., i) """ frequencies(xs)