david-lindner / safe-grid-gym

A gym interface for AI safety gridworlds created in pycolab.
Apache License 2.0
17 stars 9 forks source link

dtype of board is forced to float32 #26

Closed timorl closed 5 years ago

timorl commented 5 years ago

When converting a position into an observation the dtype of the board is forced to float32. This breaks the assertion that the resulting observation is within the observation space for the toy envs.

david-lindner commented 5 years ago

Which assertion does this break exactly? Can you give me a command to reproduce this issue?

I tried to reproduce it by just checking env.observation_space.contains(obs) for some observations, but did not encounter any problems. See #28

timorl commented 5 years ago

I believe some of the changes you made fixed also this issue, thanks!