Fix all_meta logic in Chain.set_capture_branches

This commit is contained in:
Andrew Johnson 2019-07-15 09:11:19 -05:00
parent a8dc9dd562
commit ec2b181610
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB

View file

@ -602,16 +602,16 @@ class Chain(object):
for ix in reversed(capt_index):
parent.reactions.pop(ix)
all_meta = False
all_meta = True
for tgt, br in new_ratios.items():
all_meta |= ("_m" in tgt)
all_meta = all_meta and ("_m" in tgt)
parent.reactions.append(ReactionTuple(
"(n,gamma)", tgt, capt_Q, br))
if all_meta and sums[parent_name] != 1.0:
ground_br = 1.0 - sums[parent_name]
ground_tgt = grounds.get(parent_name, None)
ground_tgt = grounds.get(parent_name)
if ground_tgt is None:
pz, pa, pm = zam(parent_name)
ground_tgt = gnd_name(pz, pa + 1, 0)