Skip to content

Commit 5f2c3c1

Browse files
goldmanmKEHANG
authored andcommitted
refactored reaction recipes
modified reaction recipe actions FORM_BOND, CHANGE_BOND and BREAK_BOND to have integers as their third variables instead of strings
1 parent 819b46d commit 5f2c3c1

44 files changed

Lines changed: 128 additions & 128 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

input/kinetics/families/1+2_Cycloaddition/groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
reverse = "Three_Ring_Cleavage"
1313

1414
recipe(actions=[
15-
['CHANGE_BOND', '*1', '-1', '*2'],
16-
['FORM_BOND', '*1', 'S', '*3'],
17-
['FORM_BOND', '*2', 'S', '*3'],
15+
['CHANGE_BOND', '*1', -1, '*2'],
16+
['FORM_BOND', '*1', 1, '*3'],
17+
['FORM_BOND', '*2', 1, '*3'],
1818
['LOSE_PAIR', '*3', '1'],
1919
])
2020

input/kinetics/families/1,2-Birad_to_alkene/groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
reverse = "Alkene_to_1,2-birad"
1313

1414
recipe(actions=[
15-
['CHANGE_BOND', '*1', '1', '*2'],
15+
['CHANGE_BOND', '*1', 1, '*2'],
1616
['LOSE_RADICAL', '*1', '1'],
1717
['LOSE_RADICAL', '*2', '1'],
1818
])

input/kinetics/families/1,2_Insertion_CO/groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
reverse = "1,1_Elimination"
1313

1414
recipe(actions=[
15-
['CHANGE_BOND', '*1', '-1', '*4'],
15+
['CHANGE_BOND', '*1', -1, '*4'],
1616
['GAIN_PAIR', '*4', '1'],
17-
['BREAK_BOND', '*2', 'S', '*3'],
18-
['FORM_BOND', '*1', 'S', '*2'],
19-
['FORM_BOND', '*1', 'S', '*3'],
17+
['BREAK_BOND', '*2', 1, '*3'],
18+
['FORM_BOND', '*1', 1, '*2'],
19+
['FORM_BOND', '*1', 1, '*3'],
2020
['LOSE_PAIR', '*1', '1'],
2121
])
2222

input/kinetics/families/1,2_Insertion_carbene/groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
reverse = "1,1_Elimination"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*2', 'S', '*3'],
16-
['FORM_BOND', '*1', 'S', '*2'],
17-
['FORM_BOND', '*1', 'S', '*3'],
15+
['BREAK_BOND', '*2', 1, '*3'],
16+
['FORM_BOND', '*1', 1, '*2'],
17+
['FORM_BOND', '*1', 1, '*3'],
1818
['LOSE_PAIR', '*1', '1'],
1919
])
2020

input/kinetics/families/1,2_shiftS/groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
reverse = "1,2_S_radical_shift"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*1', 'S', '*2'],
16-
['FORM_BOND', '*1', 'S', '*3'],
15+
['BREAK_BOND', '*1', 1, '*2'],
16+
['FORM_BOND', '*1', 1, '*3'],
1717
['GAIN_RADICAL', '*2', '1'],
1818
['LOSE_RADICAL', '*3', '1'],
1919
])

input/kinetics/families/1,3_Insertion_CO2/groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
reverse = "1,2_Elimination_CO2"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*3', 'S', '*4'],
16-
['CHANGE_BOND', '*1', '-1', '*2'],
17-
['FORM_BOND', '*1', 'S', '*3'],
18-
['FORM_BOND', '*2', 'S', '*4'],
15+
['BREAK_BOND', '*3', 1, '*4'],
16+
['CHANGE_BOND', '*1', -1, '*2'],
17+
['FORM_BOND', '*1', 1, '*3'],
18+
['FORM_BOND', '*2', 1, '*4'],
1919
])
2020

2121
entry(

input/kinetics/families/1,3_Insertion_ROR/groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
reverse = "1,2_Elimination_ROR"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*3', 'S', '*4'],
16-
['CHANGE_BOND', '*1', '-1', '*2'],
17-
['FORM_BOND', '*1', 'S', '*3'],
18-
['FORM_BOND', '*2', 'S', '*4'],
15+
['BREAK_BOND', '*3', 1, '*4'],
16+
['CHANGE_BOND', '*1', -1, '*2'],
17+
['FORM_BOND', '*1', 1, '*3'],
18+
['FORM_BOND', '*2', 1, '*4'],
1919
])
2020

2121
entry(

input/kinetics/families/1,3_Insertion_RSR/groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
reverse = "1,2_Elimination_RSR"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*3', 'S', '*4'],
16-
['CHANGE_BOND', '*1', '-1', '*2'],
17-
['FORM_BOND', '*1', 'S', '*3'],
18-
['FORM_BOND', '*2', 'S', '*4'],
15+
['BREAK_BOND', '*3', 1, '*4'],
16+
['CHANGE_BOND', '*1', -1, '*2'],
17+
['FORM_BOND', '*1', 1, '*3'],
18+
['FORM_BOND', '*2', 1, '*4'],
1919
])
2020

2121
entry(

input/kinetics/families/1,4_Cyclic_birad_scission/groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
reverse = "none"
1313

1414
recipe(actions=[
15-
['BREAK_BOND', '*2', 'S', '*3'],
15+
['BREAK_BOND', '*2', 1, '*3'],
1616
['LOSE_RADICAL', '*1', '1'],
1717
['LOSE_RADICAL', '*4', '1'],
18-
['CHANGE_BOND', '*1', '1', '*2'],
19-
['CHANGE_BOND', '*3', '1', '*4'],
18+
['CHANGE_BOND', '*1', 1, '*2'],
19+
['CHANGE_BOND', '*3', 1, '*4'],
2020
])
2121

2222
entry(

input/kinetics/families/1,4_Linear_birad_scission/groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
recipe(actions=[
1515
['LOSE_RADICAL', '*1', '1'],
1616
['LOSE_RADICAL', '*4', '1'],
17-
['CHANGE_BOND', '*1', '1', '*2'],
18-
['CHANGE_BOND', '*3', '1', '*4'],
19-
['BREAK_BOND', '*2', 'S', '*3'],
17+
['CHANGE_BOND', '*1', 1, '*2'],
18+
['CHANGE_BOND', '*3', 1, '*4'],
19+
['BREAK_BOND', '*2', 1, '*3'],
2020
])
2121

2222
entry(

0 commit comments

Comments
 (0)