Exception raised for "None" probability after call to set_prob_type

Issue #86 resolved
Pierre Denis repo owner created an issue

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)

  1. Log in to comment