-
Notifications
You must be signed in to change notification settings - Fork 414
[BugFix] Parametric collectors #1303
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.
Could you add a test (make sure it's a short one, ie just one worker for the mp collectors)
| assert ("next", *env.reward_key) in next_state.keys(True) | ||
|
|
||
| check_env_specs(env) | ||
| # check_env_specs(env) |
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.
this needs #1268 fixed to be uncommented
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.
ditto
|
I have added the test (if it s too long feel free to cut some parts of it). |
| break | ||
| ccollector.shutdown() | ||
|
|
||
| # assert ("data","reward") not in td.keys(True) # this can be activates once step_mdp is fixed for nested keys |
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.
this needs #1268 fixed to be uncommented
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.
Got it, afaic we can merge it and uncomment later
|
I have added more general tests for nested envs and specific collector tests |
| MockBatchedUnLockedEnv, | ||
| MockSerialEnv, | ||
| NestedRewardEnv, | ||
| # NestedCountingEnv, |
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.
this needs #1268 fixed to be uncommented
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.
ditto
fabb85f to
4958d8d
Compare
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 thanks!
| break | ||
| ccollector.shutdown() | ||
|
|
||
| # assert ("data","reward") not in td.keys(True) # this can be activates once step_mdp is fixed for nested keys |
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.
Got it, afaic we can merge it and uncomment later
| assert ("next", *env.reward_key) in next_state.keys(True) | ||
|
|
||
| check_env_specs(env) | ||
| # check_env_specs(env) |
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.
ditto
| MockBatchedUnLockedEnv, | ||
| MockSerialEnv, | ||
| NestedRewardEnv, | ||
| # NestedCountingEnv, |
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.
ditto
Signed-off-by: Matteo Bettini <[email protected]>
|
Let's reduce the test time and we're good to go! |
|
Is it still too high after the commit named slimmer test? |
No description provided.