Skip to content

Commit

Permalink
Merge pull request JuliaLang#180 from pkalikman/patch-1
Browse files Browse the repository at this point in the history
Fix concat deprecation warning in `cut`
  • Loading branch information
nalimilan authored Jul 3, 2016
2 parents 20ca343 + 5fbb0ed commit cc69940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function cut{S, T}(x::AbstractVector{S}, breaks::Vector{T})
PooledDataArray(RefArray(refs), pool)
end

cut(x::AbstractVector, ngroups::Integer) = cut(x, quantile(x, [1 : ngroups - 1] / ngroups))
cut(x::AbstractVector, ngroups::Integer) = cut(x, quantile(x, collect(1 : ngroups - 1) / ngroups))

function Base.repeat{T,N}(A::DataArray{T,N};
inner = ntuple(x->1, ndims(A)),
Expand Down

0 comments on commit cc69940

Please sign in to comment.