Skip to content

Commit 364651f

Browse files
committed
Small cleanup
1 parent cac54b2 commit 364651f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/extras.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,6 @@ function find_breaks(v::AbstractVector, qs::AbstractVector)
253253
q = qs[i]
254254
end
255255
end
256-
# if last values in x are equal to q, breaks were not initialized
257-
for i in i:n
258-
breaks[i] = q
259-
end
260256
return breaks
261257
end
262258

@@ -295,9 +291,7 @@ function cut(x::AbstractArray, ngroups::Integer;
295291
throw(ArgumentError("NaN values are not allowed in input vector"))
296292
end
297293
qs = quantile!(sorted_x, (1:(ngroups-1))/ngroups, sorted=true)
298-
@show qs, min_x, max_x
299294
breaks = [min_x; find_breaks(sorted_x, qs); max_x]
300-
@show breaks
301295
if !allowempty && !allunique(@view breaks[1:end-1])
302296
throw(ArgumentError("cannot compute $ngroups quantiles due to " *
303297
"too many duplicated values in `x`. " *

0 commit comments

Comments
 (0)