Skip to content

Commit cc23b71

Browse files
davidfarinajrrwest
authored andcommitted
added halogen abstraction families to species cases in family.py
1 parent 40b5558 commit cc23b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rmgpy/data/kinetics/family.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ def apply_recipe(self, reactant_structures, forward=True, unique=True, relabel_a
14301430
if atom.label != '':
14311431
atom_labels[atom.label] = atom
14321432

1433-
if label == 'h_abstraction':
1433+
if label in ('h_abstraction','f_abstraction','cl_abstraction','br_abstraction'):
14341434
# '*2' is the H that migrates
14351435
# it moves from '*1' to '*3'
14361436
atom_labels['*1'].label = '*3'
@@ -2393,7 +2393,7 @@ def get_reaction_pairs(self, reaction):
23932393
for reactant in reaction.reactants:
23942394
for product in reaction.products:
23952395
pairs.append([reactant, product])
2396-
elif self.label.lower() == 'h_abstraction':
2396+
elif self.label.lower() in ('h_abstraction','f_abstraction','cl_abstraction','br_abstraction'):
23972397
# Hardcoding for hydrogen abstraction: pair the reactant containing
23982398
# *1 with the product containing *3 and vice versa
23992399
assert len(reaction.reactants) == len(reaction.products) == 2

0 commit comments

Comments
 (0)