From eb0841cde1120d52f481a71da4dc152d34d18ea1 Mon Sep 17 00:00:00 2001 From: fheinrich <fheinrich@techfak.uni-bielefeld.de> Date: Fri, 15 Mar 2024 17:20:45 +0100 Subject: [PATCH] Changed from unpacking operator to direct accessing of grid idx, weirdly did not work on gitlab test runner --- cooperative_cuisine/state_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cooperative_cuisine/state_representation.py b/cooperative_cuisine/state_representation.py index 0a0aeef5..cbc70c51 100644 --- a/cooperative_cuisine/state_representation.py +++ b/cooperative_cuisine/state_representation.py @@ -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): -- GitLab