From c99c1f18708ad1bfca9c04299f68eb3e47adb6d3 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 16 Sep 2015 18:48:28 +0700 Subject: [PATCH] Fix bug with source_present --- openmc/statepoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/statepoint.py b/openmc/statepoint.py index fc4fc5ee1f..126d6b97e8 100644 --- a/openmc/statepoint.py +++ b/openmc/statepoint.py @@ -314,7 +314,7 @@ class StatePoint(object): @property def source_present(self): - return self._f['source_present'] > 0 + return self._f['source_present'].value > 0 @property def tallies(self):