fusion-energy / openmc-plasma-source

Creates a plasma source as an openmc.source object from input parameters that describe the plasma
MIT License
28 stars 11 forks source link

feature request: probs arg ignored if openmc.stats.Normal passed to openmc.stats.combine_distributions #94

Open jon-proximafusion opened 2 months ago

jon-proximafusion commented 2 months ago

when making use of openmc.stats.combine_distributions the type hint indicate that probs can be a Sequence[Univariate] but the doc string only mentions openmc.stats.Discrete and openmc.stats.Tabular.

Passing in two openmc.stats.Normal does not raise any errors and returns a Mixture. However the probabilities of the Mixture are set to 1. ,1. even if the users specifies [0.3,0.8]