mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Update tests/unit_tests/test_stats.py
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
This commit is contained in:
parent
e1fd9959bc
commit
aba235e0b4
1 changed files with 5 additions and 0 deletions
|
|
@ -120,6 +120,11 @@ def test_maxwell():
|
|||
samples = d.sample(n_samples, seed=100)
|
||||
assert samples.mean() == pytest.approx(exp_mean, rel=1e-02)
|
||||
|
||||
# A second sample with a different seed
|
||||
samples_2 = d.sample(n_samples, seed=200)
|
||||
assert samples_2.mean() == pytest.approx(exp_mean, rel=1e-02)
|
||||
assert samples_2.mean() != samples.mean()
|
||||
|
||||
|
||||
|
||||
def test_watt():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue