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] Typo in assertions #346

Closed drmeerkat closed 1 year ago

drmeerkat commented 1 year ago

Describe the bug There is a typo in the assertion information in line 68 of minigrid/core/grid.py. "Column index {j}" should be "Column index {i}".

Code example

assert (
        0 <= i < self.width
), f"column index {j} outside of grid of width {self.width}"

should be

assert (
        0 <= i < self.width
), f"column index {i} outside of grid of width {self.width}"

Checklist

pseudo-rnd-thoughts commented 1 year ago

Thanks could you make a PR for this?

drmeerkat commented 1 year ago

done!