diff --git a/src/utils/statepoint_histogram.py b/src/utils/statepoint_histogram.py index dae1e81dee..58f62edc12 100755 --- a/src/utils/statepoint_histogram.py +++ b/src/utils/statepoint_histogram.py @@ -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 diff --git a/src/utils/statepoint_meshplot.py b/src/utils/statepoint_meshplot.py index d68b3b6cfa..3d0b2df12b 100755 --- a/src/utils/statepoint_meshplot.py +++ b/src/utils/statepoint_meshplot.py @@ -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