Skip to content

Update lone pairs and multiplicities for radicals saturated for HBI #219

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

Merged
Show file tree
Hide file tree
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: 2 additions & 0 deletions rmgpy/data/solvation.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ def estimateSoluteViaGroupAdditivity(self, molecule):
saturatedStruct.updateConnectivityValues()
saturatedStruct.sortVertices()
saturatedStruct.updateAtomTypes()
saturatedStruct.updateLonePairs()
saturatedStruct.multiplicity = saturatedStruct.getRadicalCount() + 1

# Get solute descriptor estimates for saturated form of structure
soluteData = self.estimateSoluteViaGroupAdditivity(saturatedStruct)
Expand Down
2 changes: 2 additions & 0 deletions rmgpy/data/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,8 @@ def estimateRadicalThermoViaHBI(self, molecule, stableThermoEstimator ):
saturatedStruct.updateConnectivityValues()
saturatedStruct.sortVertices()
saturatedStruct.updateAtomTypes()
saturatedStruct.updateLonePairs()
saturatedStruct.multiplicity = saturatedStruct.getRadicalCount() + 1

# Get thermo estimate for saturated form of structure
thermoData = stableThermoEstimator(saturatedStruct)
Expand Down
1 change: 0 additions & 1 deletion rmgpy/rmg/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def generateThermoData(self, database, thermoClass=NASA, quantumMechanics=None):
thermo = []
for molecule in self.molecule:
molecule.clearLabeledAtoms()
molecule.updateAtomTypes()
tdata = database.thermo.estimateRadicalThermoViaHBI(molecule, quantumMechanics.getThermoData)
if tdata is not None:
thermo.append(tdata)
Expand Down