Skip to content

Commit

Permalink
fix getstate
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrea committed Sep 5, 2018
1 parent c9626ee commit b075d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReinforcementLearningEnvironmentGym.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ end
interact!(action, env::GymEnv) = interactgym!(action, env)
interact!(action::Int64, env::GymEnv) = interactgym!(action - 1, env)
reset!(env::GymEnv) = env.pyobj[:reset]()
getstate(env::GymEnv) = (Float64[env.pyobj[:env][:state]...], false) # doesn't work for all envs
getstate(env::GymEnv) = (env.state[1], false)

plotenv(env::GymEnv, s, a, r, d) = env.pyobj[:render]()
"""
Expand Down

0 comments on commit b075d84

Please sign in to comment.