-
Notifications
You must be signed in to change notification settings - Fork 130
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
attempt for #451 #650
attempt for #451 #650
Conversation
Modified the env.reset() function to add the reward_space and observation_space parameters. Modified the reset() func of the subclasses. Added a OptionalArgumentValue class in gym_type_hints.py for the default value.
Hi @SoumyajitKarmakar, sounds great! Would you like me to review your changes or are you still working on this? Cheers, |
Codecov Report
@@ Coverage Diff @@
## development #650 +/- ##
================================================
- Coverage 88.13% 73.52% -14.61%
================================================
Files 116 119 +3
Lines 7372 7483 +111
================================================
- Hits 6497 5502 -995
- Misses 875 1981 +1106
Continue to review full report at Codecov.
|
Hi @ChrisCummins, |
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.
Hi @SoumyajitKarmakar, thanks for your patch, your changes look good!
Since you are adding new features, could you please add unit tests to cover these new features? I think tests/compiler_env_test.py
might be a good place to add them, and you can take a look at the existing tests for inspiration.
A couple of other minor nitpicks left inline. Once you push these changes, please ping me for another review.
Cheers,
Chris
Added some simple unit test to test if the modified reset() function is working as intended.
Hi @ChrisCummins, |
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 adding the tests! The test logic looks good, you just need to make sure to convert the env.reward_space
and env.observation_space
attributes to strings for comparison.
Once you fix that, this looks ready to merge.
Cheers,
Chris
Thanks @SoumyajitKarmakar for fixing this :) This LGTM now, but holding off on merging until I fix #657. Cheers, |
Ah, looks like I gave you bad advice on how to fix the failing tests. Not your fault, I'll patch this up myself and merge via #659. Thanks for contributing to CompilerGym @SoumyajitKarmakar! 🎉 Cheers, |
It was a pleasure working with you. |
Modified the env.reset() function to add the reward_space and observation_space parameters. Modified the reset() func of the subclasses. Added a OptionalArgumentValue class in gym_type_hints.py for the default value.
Fixes #451