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
aeada434
Commit
aeada434
authored
Jul 05, 2019
by
u214892
Browse files
#62 increase coverage #83 cleanup
parent
001b58c7
Pipeline
#1352
failed with stage
in 10 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flatland/envs/rail_env.py
View file @
aeada434
...
...
@@ -202,7 +202,7 @@ class RailEnv(Environment):
self
.
rewards_dict
=
{
i
:
r
+
global_reward
for
i
,
r
in
self
.
rewards_dict
.
items
()}
return
self
.
_get_observations
(),
self
.
rewards_dict
,
self
.
dones
,
{}
for
i_agent
,
agent
in
enumerate
(
self
.
get_num_
agents
()
):
for
i_agent
,
agent
in
enumerate
(
self
.
agents
):
agent
.
old_direction
=
agent
.
direction
agent
.
old_position
=
agent
.
position
if
self
.
dones
[
i_agent
]:
# this agent has already completed...
...
...
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