-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gym Env Checker #615
Gym Env Checker #615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feature, glad we have this, will catch a lot of common problems.
High-level feedback is I think this would be clearer if check_env
(and tests) were split up into smaller helper methods. Right now if I wanted to add a check I'm not sure it'd take me a while to figure out the right place.
Otherwise looks good, made a few minor comments.
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Good point, I will do that, thanks for taking the time to review =)
In fact, we should have created that way earlier ( we have more that 50 issues related to custom environments...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, it's much clearer now that things have been split into smaller methods.
Made some minor suggestions (mostly explicitly annotating None
return type). One thing I'm confused by: why do we need to check method_name == 'reset'
?
Otherwise LGTM.
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
Co-Authored-By: Adam Gleave <[email protected]>
… into feat/env-checker
I reformated the files using pycharm + addressed the comments ;) (+ fix the type in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
Description
Many people have errors because of a custom gym environment, this should address most issues
related to a wrong implementation of the Gym interface.
Motivation and Context
closes #601
related to #595
Types of changes
Checklist:
pytest
andpytype
both pass.