Skip to content

Commit 76c7c72

Browse files
Nora KhalilNora Khalil
authored andcommitted
handling leaf nodes. Running leaf nodes through get_extension_edge so regularization info is passed (but not actually extending them).
1 parent c2a5e4e commit 76c7c72

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

rmgpy/data/kinetics/family.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3791,10 +3791,17 @@ def simple_regularization(self, node, template_rxn_map, test=True):
37913791

37923792
if isinstance(node.item, Group):
37933793
indistinguishable = []
3794+
3795+
if node.children==[]: #if this is a leaf node, run it through get_extension_edge so that the regularization info is passed to leaf node
3796+
print('extending leaf nodes to get regularization info')
3797+
_, _ = self.get_extension_edge(node, template_rxn_map, obj=None, T=1000.0, iter_max=1, iter_item_cap=1)
3798+
37943799
for i, atm1 in enumerate(grp.atoms):
37953800

37963801
skip = False
3797-
if node.children == []: # if the atoms or bonds are graphically indistinguishable don't regularize
3802+
if node.children == []:
3803+
3804+
# if the atoms or bonds are graphically indistinguishable don't regularize
37983805
bdpairs = {(atm, tuple(bd.order)) for atm, bd in atm1.bonds.items()}
37993806
for atm2 in grp.atoms:
38003807
if atm1 is not atm2 and atm1.atomtype == atm2.atomtype and len(atm1.bonds) == len(atm2.bonds):

0 commit comments

Comments
 (0)