Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ozan Catal
Animal Ai Env
Commits
47464ae7
Commit
47464ae7
authored
Apr 25, 2020
by
Benjamin
Browse files
add environment close in play mode
parent
04c7c1f5
Changes
1
Show whitespace changes
Inline
Side-by-side
animalai/animalai/envs/environment.py
View file @
47464ae7
...
...
@@ -123,6 +123,13 @@ class AnimalAIEnvironment(UnityEnvironment):
else
:
raise
timeoutException
def
close
(
self
):
if
self
.
play
:
self
.
communicator
.
close
()
self
.
proc1
.
kill
()
else
:
super
().
close
()
@
staticmethod
def
executable_args
(
n_arenas
:
int
=
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment