mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Fix event callback
This commit is contained in:
parent
b64873ffff
commit
765d8fc5b2
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class EventCallback(BaseCallback):
|
||||||
|
|
||||||
def _on_event(self) -> bool:
|
def _on_event(self) -> bool:
|
||||||
if self.callback is not None:
|
if self.callback is not None:
|
||||||
return self.callback()
|
return self.callback.on_step()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _on_step(self) -> bool:
|
def _on_step(self) -> bool:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue