Skip to content

Commit

Permalink
fix deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
wduguay-air committed Apr 3, 2024
1 parent 1f308be commit 39013b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogment_lab/specs/spaces_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def deserialize_space(pb_space: Space) -> gym.Space:
if space_kind == "tuple":
tuple_space_pb = pb_space.tuple
spaces = [deserialize_space(sub_space) for sub_space in tuple_space_pb.spaces]
return gym.spaces.Tuple(spaces)
return gym.spaces.Tuple(spaces=spaces)
if space_kind == "text":
text_space_pb = pb_space.text
return gym.spaces.Text(
Expand Down

0 comments on commit 39013b5

Please sign in to comment.