Skip to content
Snippets Groups Projects
Commit 3d054dc2 authored by spmohanty's avatar spmohanty
Browse files

Addresses #117 - Conditional ignore creation of local env when observation is false in env_create

parent e4c677e5
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,12 @@ class FlatlandRemoteClient(object): ...@@ -138,6 +138,12 @@ class FlatlandRemoteClient(object):
_response = self._blocking_request(_request) _response = self._blocking_request(_request)
observation = _response['payload']['observation'] observation = _response['payload']['observation']
if not observation:
# If the observation is False,
# then the evaluations are complete
# hence return false
return observation
test_env_file_path = _response['payload']['env_file_path'] test_env_file_path = _response['payload']['env_file_path']
self.env = RailEnv( self.env = RailEnv(
width=1, width=1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment