Skip to content

Commit

Permalink
Add explicit assumption to _apply_to_batch docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Dec 5, 2024
1 parent 0c5ead3 commit 33c5a18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/optimagic/optimization/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ def _apply_to_batch(
) -> NDArray[np.float64]:
"""Apply a reduction operator on batches of data.
This function assumes that batch_ids non-empty and sorted.
Args:
data: 1d array with data.
batch_ids: A list with batch ids whose length is equal to the size of data.
Expand Down

0 comments on commit 33c5a18

Please sign in to comment.