Open MicahGale opened 2 weeks ago
I find myself writing openmc.stats.Discrete([1.23], [1]). The probabilities here just seem silly. Also sometimes selecting multiple values with equal probability is a bit clunky too:
openmc.stats.Discrete([1.23], [1])
values = [1,2,3] openmc.stats.Discrete(values, [1/len(values)]*len(values))
Name for this is TBD:
@staticmethod def equal_probability(values): return openmc.stats.Discrete(values, [1/len(values)]*len(values))
Let the user continue to do as they currently do.
This would only add a new method.
Description
I find myself writing
openmc.stats.Discrete([1.23], [1])
. The probabilities here just seem silly. Also sometimes selecting multiple values with equal probability is a bit clunky too:Name for this is TBD:
Alternatives
Let the user continue to do as they currently do.
Compatibility
This would only add a new method.