Skip to content
Snippets Groups Projects
Commit 9bc21050 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

fixed bugs in code but got new assertion error in tests. these need to be...

fixed bugs in code but got new assertion error in tests. these need to be investigated before removing
parent 78b07263
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ class SingleAgentNavigationObs(TreeObsForRailEnv): ...@@ -53,7 +53,7 @@ class SingleAgentNavigationObs(TreeObsForRailEnv):
min_distances.append(np.inf) min_distances.append(np.inf)
observation = [0, 0, 0] observation = [0, 0, 0]
observation[np.argmin(min_distances)[0]] = 1 observation[np.argmin(min_distances)] = 1
return observation return observation
......
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