Skip to content
Snippets Groups Projects
Commit 2671b903 authored by u214892's avatar u214892
Browse files

fix test_env_prediction_builder

parent f2b9beee
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,6 @@ class Environment:
"""
raise NotImplementedError()
def get_agent_handles(self):
"""
Returns a list of agents' handles to be used as keys in the step()
......
......@@ -295,7 +295,6 @@ class TreeObsForRailEnv(ObservationBuilder):
other_target_encountered = np.inf
other_agent_same_direction = 0
other_agent_opposite_direction = 0
possible_conflict = 0
num_steps = 1
while exploring:
......
......@@ -64,7 +64,7 @@ def test_predictions():
height=rail_map.shape[0],
rail_generator=rail_from_GridTransitionMap_generator(rail),
number_of_agents=1,
obs_builder_object=TreeObsForRailEnv(max_depth=20, predictor=DummyPredictorForRailEnv(max_depth=20)),
obs_builder_object=TreeObsForRailEnv(max_depth=2, predictor=DummyPredictorForRailEnv(max_depth=20)),
)
env.reset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment