Skip to content

Commit 7c3c665

Browse files
committed
Merge pull request #219 from pierrelb/new-style-adjacency-list
Update lone pairs and multiplicities for radicals saturated for HBI
2 parents 16ea910 + ba319ef commit 7c3c665

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

rmgpy/data/solvation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ def estimateSoluteViaGroupAdditivity(self, molecule):
643643
saturatedStruct.updateConnectivityValues()
644644
saturatedStruct.sortVertices()
645645
saturatedStruct.updateAtomTypes()
646+
saturatedStruct.updateLonePairs()
647+
saturatedStruct.multiplicity = saturatedStruct.getRadicalCount() + 1
646648

647649
# Get solute descriptor estimates for saturated form of structure
648650
soluteData = self.estimateSoluteViaGroupAdditivity(saturatedStruct)

rmgpy/data/thermo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ def estimateRadicalThermoViaHBI(self, molecule, stableThermoEstimator ):
819819
saturatedStruct.updateConnectivityValues()
820820
saturatedStruct.sortVertices()
821821
saturatedStruct.updateAtomTypes()
822+
saturatedStruct.updateLonePairs()
823+
saturatedStruct.multiplicity = saturatedStruct.getRadicalCount() + 1
822824

823825
# Get thermo estimate for saturated form of structure
824826
thermoData = stableThermoEstimator(saturatedStruct)

rmgpy/rmg/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def generateThermoData(self, database, thermoClass=NASA, quantumMechanics=None):
129129
thermo = []
130130
for molecule in self.molecule:
131131
molecule.clearLabeledAtoms()
132-
molecule.updateAtomTypes()
133132
tdata = database.thermo.estimateRadicalThermoViaHBI(molecule, quantumMechanics.getThermoData)
134133
if tdata is not None:
135134
thermo.append(tdata)

0 commit comments

Comments
 (0)