Skip to content
Snippets Groups Projects
Commit eb0841cd authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Changed from unpacking operator to direct accessing of grid idx, weirdly did...

Changed from unpacking operator to direct accessing of grid idx, weirdly did not work on gitlab test runner
parent 59d0f6fd
No related branches found
No related tags found
1 merge request!89Resolve "simple pathfinding"
Pipeline #48892 failed
This commit is part of merge request !89. Comments created here will be created in the context of that merge request.
......@@ -211,7 +211,7 @@ def create_movement_graph(state: StateRepresentation, diagonal=True) -> Graph:
free_space = np.ones((width, height), dtype=bool)
for counter in state["counters"]:
grid_idx = np.array(counter["pos"]).round().astype(int)
free_space[*grid_idx] = False
free_space[grid_idx[0], grid_idx[1]] = False
graph = networkx.Graph()
for i in range(width):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment