Skip to content

Commit

Permalink
removed RL.@provide
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg authored Sep 9, 2023
1 parent 8006b6b commit e53cc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/POMDPTools/src/CommonRLIntegration/to_env.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RL.valid_actions(env::POMDPCommonRLEnv) = actions(env.m, env.s)
RL.observations(env::POMDPCommonRLEnv{RLO}) where {RLO} = (convert_o(RLO, o, env.m) for o in observations(env.m)) # should really be some kind of lazy map that handles uncountably infinite spaces
RL.provided(::typeof(RL.observations), ::Type{<:Tuple{POMDPCommonRLEnv{<:Any,<:Any,M,<:Any,<:Any}}}) where {M} = static_hasmethod(observations, Tuple{<:M})

RL.@provide function RL.setstate!(env::POMDPCommonRLEnv{<:Any,<:Any,<:Any,S}, s) where {S}
function RL.setstate!(env::POMDPCommonRLEnv{<:Any,<:Any,<:Any,S}, s) where {S}
env.s = convert_s(S, s, env.m)
env.o = rand(initialobs(env.m, env.s))
return nothing
Expand Down

0 comments on commit e53cc83

Please sign in to comment.