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
Model registry
Operate
Environments
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
yoogottamk
Flatland
Commits
78b07263
Commit
78b07263
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
further work on getting test back up
parent
32c11d52
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_flatland_malfunction.py
+2
-5
2 additions, 5 deletions
tests/test_flatland_malfunction.py
with
2 additions
and
5 deletions
tests/test_flatland_malfunction.py
+
2
−
5
View file @
78b07263
...
...
@@ -2,6 +2,7 @@ import random
from
typing
import
Dict
import
numpy
as
np
from
test_utils
import
Replay
,
ReplayConfig
,
run_replay_config
,
set_penalties_for_replay
from
flatland.core.grid.grid4
import
Grid4TransitionsEnum
from
flatland.core.grid.grid4_utils
import
get_new_position
...
...
@@ -9,7 +10,6 @@ from flatland.envs.observations import TreeObsForRailEnv
from
flatland.envs.rail_env
import
RailEnv
,
RailEnvActions
from
flatland.envs.rail_generators
import
complex_rail_generator
,
sparse_rail_generator
from
flatland.envs.schedule_generators
import
complex_schedule_generator
,
sparse_schedule_generator
from
test_utils
import
Replay
,
ReplayConfig
,
run_replay_config
,
set_penalties_for_replay
class
SingleAgentNavigationObs
(
TreeObsForRailEnv
):
...
...
@@ -180,8 +180,7 @@ def test_initial_malfunction():
num_neighb
=
3
,
# Number of connections to other cities/intersections
seed
=
215545
,
# Random seed
grid_mode
=
True
,
enhance_intersection
=
False
grid_mode
=
True
),
schedule_generator
=
sparse_schedule_generator
(
speed_ration_map
),
number_of_agents
=
1
,
...
...
@@ -264,7 +263,6 @@ def test_initial_malfunction_stop_moving():
# Number of connections to other cities/intersections
seed
=
215545
,
# Random seed
grid_mode
=
True
,
enhance_intersection
=
False
),
schedule_generator
=
sparse_schedule_generator
(
speed_ration_map
),
number_of_agents
=
1
,
...
...
@@ -357,7 +355,6 @@ def test_initial_malfunction_do_nothing():
# Number of connections to other cities/intersections
seed
=
215545
,
# Random seed
grid_mode
=
True
,
enhance_intersection
=
False
),
schedule_generator
=
sparse_schedule_generator
(
speed_ration_map
),
number_of_agents
=
1
,
...
...
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