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
3383b56b
Commit
3383b56b
authored
Jul 05, 2019
by
u214892
Browse files
passenv XAUTHORITY for benchmarks and profiling
parent
aeada434
Pipeline
#1353
passed with stage
in 7 minutes and 10 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
flatland/envs/observations.py
View file @
3383b56b
...
...
@@ -466,8 +466,6 @@ class TreeObsForRailEnv(ObservationBuilder):
]
# #############################
# #############################
new_root_observation
=
observation
[:]
# Start from the current orientation, and see which transitions are available;
# organize them as [left, forward, right, back], relative to the current orientation
# Get the possible transitions
...
...
flatland/envs/rail_env.py
View file @
3383b56b
...
...
@@ -4,7 +4,6 @@ Definition of the RailEnv environment and related level-generation functions.
Generator functions are functions that take width, height and num_resets as arguments and return
a GridTransitionMap object.
"""
# TODO: _ this is a global method --> utils or remove later
from
enum
import
IntEnum
...
...
@@ -85,7 +84,6 @@ class RailEnv(Environment):
a GridTransitionMap object
rail_from_manual_sp ecifications_generator(rail_spec) : generate a rail from
a rail specifications array
TODO: generate_rail_from_saved_list or from list of ndarray bitmaps ---
width : int
The width of the rail map. Potentially in the future,
a range of widths to sample from.
...
...
tests/test_flatland_core_transition_map.py
View file @
3383b56b
...
...
@@ -20,6 +20,4 @@ def test_grid8_set_transitions():
grid8_map
.
set_transition
((
0
,
0
,
Grid8TransitionsEnum
.
NORTH
),
Grid8TransitionsEnum
.
NORTH
,
0
)
assert
grid8_map
.
get_transitions
((
0
,
0
,
Grid8TransitionsEnum
.
NORTH
))
==
(
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
)
# TODO GridTransitionMap
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