- edited description
- changed title to Exception raised for "None" probability after call to set_prob_type
Exception raised for "None" probability after call to set_prob_type
Issue #86
resolved
By default, None
probability is converted to the right value:
lea.pmf({"Head": '1/4', "Tail": None})
# -> Head : 1/4
# Tail : 3/4
But this breaks after calling set_prob_type
with an argument different from "x"
:
lea.set_prob_type("r")
lea.pmf({"Head": '1/4', "Tail": None})
# -> TypeError: argument should be a string or a Rational instance
Comments (4)
-
reporter -
reporter Fix issue with None probability (refs
#86)→ <<cset 155fc15e4b57>>
-
reporter - changed status to open
-
reporter - changed status to resolved
Fixed on Lea 4.
- Log in to comment