Skip to content

Commit

Permalink
Proper bounds on chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
kboone committed May 14, 2019
1 parent 9f75f67 commit c448ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def load(cls, dataset_name, metadata_only=False, chunk=None,
"num_chunks must be specified to load the data in chunks!"
)

if chunk < 0 or chunk > num_chunks:
if chunk < 0 or chunk >= num_chunks:
raise AvocadoException(
"chunk must be in range [0, num_chunks)!"
)
Expand Down

0 comments on commit c448ed1

Please sign in to comment.