Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
fix #181 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway authored Jan 30, 2021
1 parent 40820ec commit 5802675
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CommonRLInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Base.convert(::Type{AbstractEnv}, env::CRL.AbstractEnv) = convert(RLBaseEnv, env
Base.convert(::Type{RLBaseEnv}, env::CRL.AbstractEnv) = RLBaseEnv(env, 0.0f0) # can not determine reward ahead. Assume `Float32`.

state(env::RLBaseEnv) = CRL.observe(env.env)
state_space(env::RLBaseEnv) = CRL.observations(env.env)
action_space(env::RLBaseEnv) = CRL.actions(env.env)
reward(env::RLBaseEnv) = env.r
is_terminated(env::RLBaseEnv) = CRL.terminated(env.env)
Expand Down

0 comments on commit 5802675

Please sign in to comment.