@@ -514,7 +514,7 @@ def splitBicyclicIntoSingleRings(bicyclic_submol):
514514 return [convertRingToSubMolecule (SSSR [0 ])[0 ],
515515 convertRingToSubMolecule (SSSR [1 ])[0 ]]
516516
517- def saturateRingBonds (ring_submol ):
517+ def saturate_ring_bonds (ring_submol ):
518518 """
519519 Given a ring submolelcule (`Molecule`), makes a deep copy and converts non-single bonds
520520 into single bonds, returns a new saturated submolecule (`Molecule`)
@@ -537,7 +537,7 @@ def saturateRingBonds(ring_submol):
537537 bond_order = 1.5
538538 mol0 .addBond (Bond (atomsMapping [atom ],atomsMapping [bondedAtom ],order = bond_order ))
539539
540- mol0 .saturateUnfilledValence ()
540+ mol0 .saturate_unfilled_valence ()
541541 mol0 .updateAtomTypes ()
542542 mol0 .updateMultiplicity ()
543543 mol0 .updateConnectivityValues ()
@@ -1404,7 +1404,7 @@ def estimateRadicalThermoViaHBI(self, molecule, stableThermoEstimator ):
14041404
14051405 assert molecule .isRadical (), "Method only valid for radicals."
14061406 saturatedStruct = molecule .copy (deep = True )
1407- added = saturatedStruct .saturateRadicals ()
1407+ added = saturatedStruct .saturate_radicals ()
14081408 saturatedStruct .props ['saturated' ] = True
14091409
14101410 # Get thermo estimate for saturated form of structure
@@ -1680,7 +1680,7 @@ def __addPolyRingCorrectionThermoDataFromHeuristic(self, thermoData, polyring):
16801680 for aromaticBond in aromaticBonds :
16811681 aromaticBond .setOrderNum (1 )
16821682
1683- submol .saturateUnfilledValence ()
1683+ submol .saturate_unfilled_valence ()
16841684 submol .update
16851685 singleRingThermodata = self .__addRingCorrectionThermoDataFromTree (None , \
16861686 self .groups ['ring' ], submol , submol .atoms )[0 ]
@@ -1700,7 +1700,7 @@ def getBicyclicCorrectionThermoDataFromHeuristic(self, bicyclic):
17001700 # saturate if the bicyclic has unsaturated bonds
17011701 # otherwise return None
17021702 bicyclic_submol = convertRingToSubMolecule (bicyclic )[0 ]
1703- saturated_bicyclic_submol , alreadySaturated = saturateRingBonds (bicyclic_submol )
1703+ saturated_bicyclic_submol , alreadySaturated = saturate_ring_bonds (bicyclic_submol )
17041704
17051705 if alreadySaturated :
17061706 return None
@@ -1737,7 +1737,7 @@ def getBicyclicCorrectionThermoDataFromHeuristic(self, bicyclic):
17371737 for aromaticBond in aromaticBonds :
17381738 aromaticBond .setOrderNum (1 )
17391739
1740- submol .saturateUnfilledValence ()
1740+ submol .saturate_unfilled_valence ()
17411741 submol .update
17421742 single_ring_thermoData = self .__addRingCorrectionThermoDataFromTree (None ,
17431743 self .groups ['ring' ], submol , submol .atoms )[0 ]
@@ -1756,7 +1756,7 @@ def getBicyclicCorrectionThermoDataFromHeuristic(self, bicyclic):
17561756 for aromaticBond in aromaticBonds :
17571757 aromaticBond .setOrderNum (1 )
17581758
1759- submol .saturateUnfilledValence ()
1759+ submol .saturate_unfilled_valence ()
17601760 submol .update
17611761 single_ring_thermoData = self .__addRingCorrectionThermoDataFromTree (None ,
17621762 self .groups ['ring' ], submol , submol .atoms )[0 ]
0 commit comments