mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Added explicit environment closing (#129)
This commit is contained in:
@@ -515,3 +515,11 @@ class GymEnvironment(Environment):
|
||||
|
||||
def get_target_success_rate(self) -> float:
|
||||
return self.target_success_rate
|
||||
|
||||
def close(self) -> None:
|
||||
"""
|
||||
Clean up to close rendering windows.
|
||||
|
||||
:return: None
|
||||
"""
|
||||
self.env.close()
|
||||
|
||||
Reference in New Issue
Block a user