Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neurips2020-flatland-baselines
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flatland
neurips2020-flatland-baselines
Commits
0b50abd8
Commit
0b50abd8
authored
May 01, 2020
by
MasterScrat
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
94e07ef9
96f300bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
envs/flatland/rllib_wrapper.py
envs/flatland/rllib_wrapper.py
+3
-3
No files found.
envs/flatland/rllib_wrapper.py
View file @
0b50abd8
...
...
@@ -53,9 +53,9 @@ class FlatlandRllibWrapper(object):
if
agent
!=
'__all__'
:
if
done
:
self
.
_agents_done
.
append
(
agent
)
if
infos
[
'action_required'
][
agent
]
or
done
:
# filter out agents that need no action
o
[
agent
]
=
obs
[
agent
]
r
[
agent
]
=
rewards
[
agent
]
# if infos['action_required'][agent] or done:
o
[
agent
]
=
obs
[
agent
]
r
[
agent
]
=
rewards
[
agent
]
self
.
_agent_scores
[
agent
]
+=
rewards
[
agent
]
self
.
_agent_steps
[
agent
]
+=
1
d
[
agent
]
=
dones
[
agent
]
...
...
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