From 3383b56ba1578647f02e0d8e9b9d2589f2640a01 Mon Sep 17 00:00:00 2001 From: u214892 <u214892@sbb.ch> Date: Fri, 5 Jul 2019 20:39:32 +0200 Subject: [PATCH] passenv XAUTHORITY for benchmarks and profiling --- flatland/envs/observations.py | 2 -- flatland/envs/rail_env.py | 2 -- tests/test_flatland_core_transition_map.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/flatland/envs/observations.py b/flatland/envs/observations.py index 5a19dee..1f02d51 100644 --- a/flatland/envs/observations.py +++ b/flatland/envs/observations.py @@ -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 diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py index d2b4791..c705055 100644 --- a/flatland/envs/rail_env.py +++ b/flatland/envs/rail_env.py @@ -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. diff --git a/tests/test_flatland_core_transition_map.py b/tests/test_flatland_core_transition_map.py index 2f721ca..8013e91 100644 --- a/tests/test_flatland_core_transition_map.py +++ b/tests/test_flatland_core_transition_map.py @@ -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 -- GitLab