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
a2d56364
Commit
a2d56364
authored
Sep 17, 2021
by
nimishsantosh107
Browse files
rc2 evaluator fixes - 2
parent
6e6158a6
Pipeline
#8545
canceled with stages
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
dist/flatland_rl-3.0.0rc2-py2.py3-none-any.whl
View file @
a2d56364
No preview for this file type
flatland/evaluators/service.py
View file @
a2d56364
...
...
@@ -867,7 +867,7 @@ class FlatlandRemoteEvaluationService:
))
# We count the number of agents that malfunctioned by checking how many have 1 more steps left before recovery
num_malfunctioning
=
sum
(
agent
.
malfunction_
data
[
'
malfunction
'
]
==
1
for
agent
in
self
.
env
.
agents
)
num_malfunctioning
=
sum
(
agent
.
malfunction_
handler
.
_
malfunction
_down_counter
==
1
for
agent
in
self
.
env
.
agents
)
if
self
.
verbose
and
num_malfunctioning
>
0
:
print
(
"Step {}: {} agents have malfunctioned and will recover next step"
.
format
(
self
.
current_step
,
num_malfunctioning
))
...
...
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