mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Correcting sampling unit test
This commit is contained in:
parent
124839796e
commit
f92515d6f2
1 changed files with 2 additions and 2 deletions
|
|
@ -139,6 +139,6 @@ def test_unstructured_mesh_sampling(model, request, test_cases):
|
|||
exp_vals = strengths.reshape(-1, 12).sum(axis=1) / sum(strengths)
|
||||
|
||||
diff = np.abs(mean - exp_vals)
|
||||
assert((diff < 2*std_dev).sum() / diff[:10].size >= 0.95)
|
||||
assert((diff < 6*std_dev).sum() / diff.size >= 0.97)
|
||||
assert((diff < 2*std_dev).sum() / diff.size >= 0.95)
|
||||
assert((diff < 6*std_dev).sum() / diff.size >= 0.997)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue