Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elrichgro
Flatland
Commits
b515a1c4
Commit
b515a1c4
authored
5 years ago
by
spiglerg
Browse files
Options
Downloads
Patches
Plain Diff
fixed tests
parent
25bb98a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_environments.py
+4
-1
4 additions, 1 deletion
tests/test_environments.py
with
4 additions
and
1 deletion
tests/test_environments.py
+
4
−
1
View file @
b515a1c4
...
...
@@ -3,6 +3,7 @@
from
flatland.core.env
import
RailEnv
from
flatland.core.transitions
import
Grid4Transitions
from
flatland.core.transitionmap
import
GridTransitionMap
import
numpy
as
np
"""
Tests for `flatland` package.
"""
...
...
@@ -44,7 +45,9 @@ def test_rail_environment_single_agent():
north_west_turn
]],
dtype
=
np
.
uint16
)
rail_env
=
RailEnv
(
rail_map
,
number_of_agents
=
1
)
rail
=
GridTransitionMap
(
width
=
3
,
height
=
3
,
transitions
=
transitions
)
rail
.
grid
=
rail_map
rail_env
=
RailEnv
(
rail
,
number_of_agents
=
1
)
for
_
in
range
(
200
):
_
=
rail_env
.
reset
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment