Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Flatland
Flatland
Commits
3e0b3e87
Commit
3e0b3e87
authored
Sep 15, 2021
by
nimishsantosh107
Browse files
evaluator DONE status check updated - untested
parent
4b960cbb
Pipeline
#8515
failed with stages
in 8 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flatland/evaluators/service.py
View file @
3e0b3e87
...
...
@@ -22,7 +22,7 @@ import timeout_decorator
import
flatland
from
flatland.core.env_observation_builder
import
DummyObservationBuilder
from
flatland.envs.
agent
_utils
import
RailAgent
Stat
us
from
flatland.envs.
step
_utils
.states
import
Train
Stat
e
from
flatland.envs.malfunction_generators
import
malfunction_from_file
from
flatland.envs.rail_env
import
RailEnv
from
flatland.envs.rail_generators
import
rail_from_file
...
...
@@ -898,7 +898,7 @@ class FlatlandRemoteEvaluationService:
complete
=
0
for
i_agent
in
range
(
self
.
env
.
get_num_agents
()):
agent
=
self
.
env
.
agents
[
i_agent
]
if
agent
.
stat
us
in
[
RailAgent
Stat
us
.
DONE
_REMOVED
]
:
if
agent
.
stat
e
==
Train
Stat
e
.
DONE
:
complete
+=
1
percentage_complete
=
complete
*
1.0
/
self
.
env
.
get_num_agents
()
self
.
simulation_percentage_complete
[
-
1
]
=
percentage_complete
...
...
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