Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move variable initiation to avoid undefined variable error #1546

Merged
merged 1 commit into from
Feb 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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