Skip to content

Commit

Permalink
fix: first callback execution
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jul 1, 2024
1 parent 3847502 commit c8535a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elastica/modules/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def _finalize_callback(self: SystemCollectionProtocol) -> None:
self._callback_list.clear()
del self._callback_list

# First callback execution
self.apply_callbacks(time=np.float64(0.0), current_step=0)


class _CallBack:
"""
Expand Down

0 comments on commit c8535a8

Please sign in to comment.