-
-
Notifications
You must be signed in to change notification settings - Fork 62
ENH: EpisodeData as dataclass #88
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
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.
I think it would be good to add a test for this, but otherwise it looks good to me.
I added a test for it, thanks! For testing, I copied the list of spaces that you used in your PR and added them to a file |
Thanks for the test. I like the shared dependency for the test spaces so we avoid repeating definitions, I'll copy this pattern for the Dummy space registration for the unflattened spaces PR. For the new test, can you also add an assert to the test that checks to see that the |
done |
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.
LGTM :^)
* episodedata as dataclass * add test * fix pre-commit * add __init__ to test * enhance test
Description
Make
EpisodeData
a dataclass instead ofNamedTuple
and implement__repr__
method as suggested in #79Type of change
Checklist:
pre-commit
checks withpre-commit run --all-files
(seeCONTRIBUTING.md
instructions to set it up)pytest -v
and no errors are present.pytest -v
has generated that are related to my code to the best of my knowledge.