Skip to content

Commit

Permalink
Minor fix in collection functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed Jun 16, 2024
1 parent 8082de9 commit d6e769f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/collection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function Collection(path::String)
end

function get_chunksize(collection::Collection, nranks::Int)
min(25000, 1 + floor(length(collection.data) / nranks))
Int(min(25000, 1 + floor(length(collection.data) / nranks)))
end

function enumerate_batches(
collection::Collection, chunksize::Union{Int, Missing} = missing,
collection::Collection; chunksize::Union{Int, Missing} = missing,
nranks::Union{Int, Missing} = missing)
if ismissing(chunksize)
if ismissing(nranks)
Expand Down

0 comments on commit d6e769f

Please sign in to comment.