Skip to content

Commit

Permalink
AllLatticeEdges.get_edges written, not tested
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-sandoval committed May 25, 2024
1 parent f680b1f commit ba6404a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maze_dataset/tokenization/maze_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ class AllLatticeEdges(EdgeSubset):
def get_edges(
maze: LatticeMaze,
) -> ConnectionArray:
return lattice_connection_array(maze.grid_n)
lattice_edges: ConnectionArray = lattice_connection_array(maze.grid_n)
return np.append(lattice_edges, np.flip(lattice_edges, axis=1), axis=0)


@serializable_dataclass(frozen=True, kw_only=True)
Expand Down

0 comments on commit ba6404a

Please sign in to comment.