mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Added proper Exception in statepoint Python scripts.
This commit is contained in:
parent
84f2974459
commit
b5a8c047e5
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ sp = StatePoint(filename)
|
|||
|
||||
# Check if tallies are present
|
||||
if not sp._get_int()[0]:
|
||||
print("No tally data in state point!")
|
||||
raise Exception("No tally data in state point!")
|
||||
|
||||
# Calculate t-value for 95% two-sided CI
|
||||
n = sp.current_batch - sp.n_inactive
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ sp = StatePoint(filename)
|
|||
|
||||
# Check if tallies are present
|
||||
if not sp._get_int()[0]:
|
||||
print("No tally data in state point!")
|
||||
raise Exception("No tally data in state point!")
|
||||
|
||||
# Calculate t-value for 95% two-sided CI
|
||||
n = sp.current_batch - sp.n_inactive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue