Skip to content

Commit

Permalink
[Code Fix] Added Fluroine to reaction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarwumit committed Jan 29, 2019
1 parent 4b63989 commit 6da3f21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmgpy/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,11 +970,11 @@ def generatePairs(self):
productFluorines = [sum([1 for atom in product.molecule[0].atoms if atom.isFluorine()]) for product in products ]

# Sort the reactants and products by C/O/N/S numbers
reactants = [(carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, reactant) for carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, reactant
in zip(reactantCarbons,reactantOxygens,reactantNitrogens,reactantSilicons,reactantSulfurs,reactantChlorines, reactantIodines, reactants)]
reactants = [(carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, reactant) for carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, reactant
in zip(reactantCarbons,reactantOxygens,reactantNitrogens,reactantSilicons,reactantSulfurs,reactantChlorines, reactantIodines, reactantFluorines, reactants)]
reactants.sort()
products = [(carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, product) for carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, product
in zip(productCarbons,productOxygens,productNitrogens,productSilicons,productSulfurs,productChlorines, productIodines, products)]
products = [(carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, product) for carbon, oxygen, nitrogen, silicon, sulfur, chlorine, iodine, fluorine, product
in zip(productCarbons,productOxygens,productNitrogens,productSilicons,productSulfurs,productChlorines, productIodines, productFluorines, products)]
products.sort()

while len(reactants) > 1 and len(products) > 1:
Expand Down

0 comments on commit 6da3f21

Please sign in to comment.