From 99cb54bf8e2abe6fff8d878b2e61345186155228 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 13 Sep 2021 15:42:15 -0500 Subject: [PATCH] Comment explaining special case in get_decay_modes --- openmc/data/decay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/data/decay.py b/openmc/data/decay.py index a4e5405a2b..a0402b47db 100644 --- a/openmc/data/decay.py +++ b/openmc/data/decay.py @@ -58,6 +58,8 @@ def get_decay_modes(value): """ if int(value) == 10: + # The logic below would treat 10.0 as [1, 0] rather than [10] as it + # should, so we handle this case separately return ['unknown'] else: return [_DECAY_MODES[int(x)][0] for x in