Skip to content

Commit

Permalink
import initialobs, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeBouton committed Oct 10, 2019
1 parent c5ea4da commit fde04d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/POMDPModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import POMDPs: gen, support, discount, isterminal
import POMDPs: actions, actionindex, action, dimensions
import POMDPs: states, stateindex, transition
import POMDPs: observations, observation, obsindex
import POMDPs: initialstate, initialstate_distribution
import POMDPs: initialstate, initialstate_distribution, initialobs
import POMDPs: updater, update
import POMDPs: reward
import POMDPs: convert_s, convert_a, convert_o
Expand Down
2 changes: 1 addition & 1 deletion test/tiger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let
simulate(sim, pomdp1, policy, updater(policy), initialstate_distribution(pomdp1))

# test gen(:o, ...)
o = gen(DDNNode(:o), pomdp1, true, MersenneTwister(1))
o = initialobs(pomdp1, true, MersenneTwister(1))
@test o == 1
# test vec
ov = convert_o(Array{Float64}, true, pomdp1)
Expand Down

0 comments on commit fde04d9

Please sign in to comment.