Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use OperatorGroup for constrain and callback features #404

Open
wants to merge 10 commits into
base: update-0.3.3
Choose a base branch
from
Prev Previous commit
fix: first callback execution
  • Loading branch information
skim0119 committed Jul 1, 2024
commit 4f99538285ed5c64aee9e5227eb6287969ae27cd
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
Loading
Loading