From a9f1d9c5bc5a79b0315cf4dd1ca35fef924fff4c Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 5 Oct 2020 20:55:18 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andrew Johnson --- openmc/data/decay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/data/decay.py b/openmc/data/decay.py index 94cae769e5..a477f06cfa 100644 --- a/openmc/data/decay.py +++ b/openmc/data/decay.py @@ -298,7 +298,7 @@ class Decay(EqualityMixin): applications. decay_constant : uncertainties.UFloat Decay constant in inverse seconds. - decay_energy : float + decay_energy : uncertainties.UFloat Average energy in [eV] per decay for a decay heat half_life : uncertainties.UFloat Half-life of the decay in seconds. @@ -472,7 +472,7 @@ class Decay(EqualityMixin): if energy: return energy['light'] + energy['electromagnetic'] + energy['heavy'] else: - return 0.0 + return ufloat(0, 0) @classmethod def from_endf(cls, ev_or_filename):