pyrddlgym-project / pyRDDLGym

A toolkit for auto-generation of OpenAI Gym environments from RDDL description files.
https://pyrddlgym.readthedocs.io/
MIT License
68 stars 17 forks source link

Fix function argument type #208

Closed GMMDMDIDEMS closed 1 year ago

GMMDMDIDEMS commented 1 year ago

Hi, The function get_instance(self, num: int) in the ExampleManager class assumes an int argument to load specific instance files. As some domains in the examples have instance files including chars, like instance1c.rddl it is not possible to use the function above. Changing the argument type to str will fix the issue.