Skip to content

Commit

Permalink
output edge_space in edge_space assert instead of node_space (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoLLex authored May 20, 2024
1 parent df97b31 commit 313fd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gymnasium/spaces/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
if edge_space is not None:
assert isinstance(
edge_space, (Box, Discrete)
), f"Values of the edge_space should be instances of None Box or Discrete, got {type(node_space)}"
), f"Values of the edge_space should be instances of None Box or Discrete, got {type(edge_space)}"

self.node_space = node_space
self.edge_space = edge_space
Expand Down

0 comments on commit 313fd52

Please sign in to comment.