Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway committed Sep 6, 2018
1 parent bd28632 commit f400d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReinforcementLearningEnvironmentGym.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ end
"Not very useful, kept for compat"
function getstate(env::GymEnv)
if pyisinstance(env.state, PyCall.@pyglobalobj :PyTuple_Type)
(observation=env.state[1], reward=env.state[2], isdone=env.state[3])
(observation=env.state[1], isdone=env.state[3])
else
# env has just been reseted
(observation=env.state,)
(observation=env.state, isdone=false)
end
end

Expand Down

0 comments on commit f400d11

Please sign in to comment.