Skip to content

Commit

Permalink
Move variable initiation to avoid undefined variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu49 authored and mjohnson541 committed Feb 3, 2019
1 parent c21e3e5 commit f4d8a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/rmg/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,13 @@ def processNewReactions(self, newReactions, newSpecies, pdepNetwork=None):
if rxn is None:
# Skip this reaction because there was something wrong with it
continue
spcs = []
if isNew:
# We've made a new reaction, so make sure the species involved
# are in the core or edge
allSpeciesInCore = True
# Add the reactant and product species to the edge if necessary
# At the same time, check if all reactants and products are in the core
spcs = []
for spec in rxn.reactants:
if spec not in self.core.species:
allSpeciesInCore = False
Expand Down

0 comments on commit f4d8a0b

Please sign in to comment.