Skip to content

Commit

Permalink
Merge pull request #62 from mattuntergassmair/smallfix
Browse files Browse the repository at this point in the history
missed one bug in TMazes
  • Loading branch information
mattuntergassmair committed Dec 18, 2019
2 parents 75eeec6 + 727f071 commit 409640a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TMazes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function create_transition_distribution(::TMaze)
rp = [0.5, 0.5]
TMazeStateDistribution(TMazeState(), false, rs, rp)
end
support(d::TMazeStateDistribution) = d.reset ? (return [d.current_state]) : (return zip(d.reset_states, d.reset_probs))
support(d::TMazeStateDistribution) = d.reset ? [d.current_state] : d.reset_states

function pdf(d::TMazeStateDistribution, s::TMazeState)
if d.reset
Expand Down

0 comments on commit 409640a

Please sign in to comment.