Skip to content

Commit 7b84153

Browse files
committed
Add and modify calls for generateTransportData()
- move call for seed species from initialize() to addSeedMechanismToCore() - call getTransportData() for reactions found in reaction libraries in addReactionLibraryToEdge()
1 parent d8e7734 commit 7b84153

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rmgpy/rmg/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,6 @@ def initialize(self, args):
335335
# DON'T generate any more reactions for the seed species at this time
336336
for seedMechanism in self.seedMechanisms:
337337
self.reactionModel.addSeedMechanismToCore(seedMechanism, react=False)
338-
339-
for spec in self.reactionModel.core.species:
340-
spec.generateTransportData(self.database)
341338

342339
# Reaction libraries: add species and reactions from reaction library to the edge so
343340
# that RMG can find them if their rates are large enough

rmgpy/rmg/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,7 @@ def addSeedMechanismToCore(self, seedMechanism, react=False):
12781278
r, isNew = self.makeNewReaction(rxn) # updates self.newSpeciesList and self.newReactionlist
12791279
for spec in self.newSpeciesList:
12801280
if spec.reactive: spec.generateThermoData(database, quantumMechanics=self.quantumMechanics)
1281+
spec.generateTransportData(database)
12811282
for spec in self.newSpeciesList:
12821283
self.addSpeciesToCore(spec)
12831284

@@ -1327,6 +1328,7 @@ def addReactionLibraryToEdge(self, reactionLibrary):
13271328
if not isNew: logging.info("This library reaction was not new: {0}".format(rxn))
13281329
for spec in self.newSpeciesList:
13291330
if spec.reactive: spec.generateThermoData(database, quantumMechanics=self.quantumMechanics)
1331+
spec.generateTransportData(database)
13301332
for spec in self.newSpeciesList:
13311333
self.addSpeciesToEdge(spec)
13321334

0 commit comments

Comments
 (0)