mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Apply suggestions from code review
Co-authored-by: Andrew Johnson <drewejohnson@users.noreply.github.com>
This commit is contained in:
parent
abc9e9c7ad
commit
a9f1d9c5bc
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue