From b5a8c047e527f4f6c07b5d749479269ac2d0f7ff Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 24 Aug 2012 11:13:53 -0400 Subject: [PATCH] Added proper Exception in statepoint Python scripts. --- src/utils/statepoint_histogram.py | 2 +- src/utils/statepoint_meshplot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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