-
-
Notifications
You must be signed in to change notification settings - Fork 108
Fix inconsitencies in wrappers #263
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
|
Seems like something weird was going on with my editor. Tried to search for StateOverriddenEnv in the repo and only got the one hit in atari.jl outside of the wrapper definitions. Thought it was weird that it was not used more but didn't think more about it. |
src/ReinforcementLearningZoo/src/experiments/gridworlds/JuliaRL_BasicDQN_EmptyRoom.jl
Outdated
Show resolved
Hide resolved
src/ReinforcementLearningEnvironments/test/environments/wrappers/wrappers.jl
Outdated
Show resolved
Hide resolved
src/ReinforcementLearningEnvironments/test/environments/wrappers/wrappers.jl
Outdated
Show resolved
Hide resolved
|
Found that even though tests passed we had an error in the outputs. Is something configured incorrectly? At lines 1910 and forward in the output for the tests we have Having a look at it now. |
|
Yeah, nice catch! It's a bug in Line 57 in 1c15e28
and is triggered here:
Not sure what I missed. But I'm pretty sure something is wrong here: ReinforcementLearning.jl/.github/workflows/ci.yml Lines 47 to 59 in 1c15e28
|
|
Well, maybe not. https://github.com/JuliaReinforcementLearning/ReinforcementLearning.jl/runs/2517792411#step:7:2461 There's no error shown in the final report... |
Yeah, if you open the Run julia ... thing and scroll down to line 1910 there is the same error for me. |
|
I just did a quick test. It seems something is not working as expected of the For example: @testset "test" begin
a = error("abc")
@info "testing..." a
endThis will result in a report with an error: While the following one will not (just the same with the one in our tests): using Test
@testset "test" begin
@info "testing..." a = error("abc")
end |
|
The error message is caught and not rethrown here. Not sure why they did this though... |
|
So if an error occur inside an EDIT: Git distracted while writing so didn't see that you already posted the answer. |
Seems weird, probably check with them if that is intended. |
Remake of JuliaReinforcementLearning/ReinforcementLearningEnvironments.jl#141
StateOverriddenEnvtoStateTransformedEnvstate_space_mappingtoStateTransformedEnv