Skip to content

Commit

Permalink
Fix returned value in batching utility (#33)
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
DrFabach authored Mar 18, 2024
1 parent 10d3871 commit f682b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medkit/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def batch_list(values: list[Any], batch_size: int) -> Iterator[list[Any]]:
be smaller).
"""
for i in range(0, len(values), batch_size):
yield list[i : i + batch_size]
yield values[i : i + batch_size]


def modules_are_available(modules: list[str]):
Expand Down

0 comments on commit f682b4f

Please sign in to comment.