Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.09k stars 604 forks source link

[Bug Report] Spec.to_json() of SimpleCrossing fails #396

Open younik opened 1 year ago

younik commented 1 year ago

Describe the bug The spec dict of SimpleCrossing environments is not serializable due to obstacle_type.

Code example

import gymnasium as gym
import minigrid

gym.make("MiniGrid-SimpleCrossingS11N5-v0").spec.to_json()

System Info Minigrid installed via pip install minigrid. I am using OSX, with Python 3.11

Checklist