rdworks 0.43.1__py3-none-any.whl → 0.43.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rdworks/__init__.py +1 -1
- rdworks/conf.py +17 -3
- {rdworks-0.43.1.dist-info → rdworks-0.43.3.dist-info}/METADATA +1 -1
- {rdworks-0.43.1.dist-info → rdworks-0.43.3.dist-info}/RECORD +7 -7
- {rdworks-0.43.1.dist-info → rdworks-0.43.3.dist-info}/WHEEL +0 -0
- {rdworks-0.43.1.dist-info → rdworks-0.43.3.dist-info}/licenses/LICENSE +0 -0
- {rdworks-0.43.1.dist-info → rdworks-0.43.3.dist-info}/top_level.txt +0 -0
rdworks/__init__.py
CHANGED
rdworks/conf.py
CHANGED
@@ -206,11 +206,24 @@ class Conf:
|
|
206
206
|
if isinstance(calculator, str) :
|
207
207
|
|
208
208
|
PE_start = self.potential_energy(calculator)
|
209
|
+
PE_final = None
|
209
210
|
|
210
211
|
if calculator.lower() == 'xTB'.lower():
|
211
212
|
water = kwargs.get('water', None)
|
212
|
-
|
213
|
-
|
213
|
+
result = GFN2xTB(self.rdmol).optimize(water=water)
|
214
|
+
# SimpleNamespace(
|
215
|
+
# PE = datadict['total energy'] * hartree2kcalpermol,
|
216
|
+
# charges = datadict['partial charges'],
|
217
|
+
# wbo = Wiberg_bond_orders,
|
218
|
+
# geometry = rdmol_opt,
|
219
|
+
# )
|
220
|
+
try:
|
221
|
+
self.rdmol = result.geometry
|
222
|
+
PE_final = result.PE
|
223
|
+
retcode = 0
|
224
|
+
except:
|
225
|
+
retcode = 1
|
226
|
+
|
214
227
|
elif calculator.lower() == 'MMFF94'.lower() or calculator.lower() == 'MMFF'.lower():
|
215
228
|
retcode = Chem.rdForceFieldHelpers.MMFFOptimizeMolecule(self.rdmol,
|
216
229
|
mmffVariant='MMFF94',
|
@@ -226,7 +239,8 @@ class Conf:
|
|
226
239
|
maxIters=max_iter)
|
227
240
|
# returns 0 if the optimization converged
|
228
241
|
|
229
|
-
PE_final
|
242
|
+
if PE_final is None:
|
243
|
+
PE_final = self.potential_energy(calculator)
|
230
244
|
|
231
245
|
self.props.update({
|
232
246
|
'E_tot_init(kcal/mol)': PE_start , # energy before optimization
|
@@ -1,5 +1,5 @@
|
|
1
|
-
rdworks/__init__.py,sha256=
|
2
|
-
rdworks/conf.py,sha256=
|
1
|
+
rdworks/__init__.py,sha256=0vesrJlo_AqSgeVT7zQFhvL7caqZ6YIsv7gUB1O9nAU,1368
|
2
|
+
rdworks/conf.py,sha256=CvG_X2dYUt02HKei9JqA9K_ZttzJXqXEozD1cLAAkfs,32122
|
3
3
|
rdworks/descriptor.py,sha256=34T_dQ6g8v3u-ym8TLKbQtxIIV5TEo-d3pdedq3o-cg,2106
|
4
4
|
rdworks/display.py,sha256=JR0gR26UpH-JCxVOaqXZCUj2MiGZSrx9Me87FncspVI,13469
|
5
5
|
rdworks/ionized.py,sha256=5oIjMRpkX792RIpEEE2Ir96icfFaN_h21mSihhfQPAw,6713
|
@@ -66,8 +66,8 @@ rdworks/predefined/misc/reactive-part-3.xml,sha256=LgWHSEbRTVmgBoIO45xbTo1xQJs0X
|
|
66
66
|
rdworks/predefined/misc/reactive.xml,sha256=syedoQ6VYUfRLnxy99ObuDniJ_a_WhrWAJbTKFfJ6VY,11248
|
67
67
|
rdworks/xtb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
68
|
rdworks/xtb/wrapper.py,sha256=I0nW89vlJZ5Za5pCjIpjsEOFbTm7HpeNGiPgssheWn8,11350
|
69
|
-
rdworks-0.43.
|
70
|
-
rdworks-0.43.
|
71
|
-
rdworks-0.43.
|
72
|
-
rdworks-0.43.
|
73
|
-
rdworks-0.43.
|
69
|
+
rdworks-0.43.3.dist-info/licenses/LICENSE,sha256=UOkJSBqYyQUvtCp7a-vdCANeEcLE2dnTie_eB1By5SY,1074
|
70
|
+
rdworks-0.43.3.dist-info/METADATA,sha256=03DcKDuVgWC7eW7MZShOW9zKfQBBqGqrHYFxvsucNgE,1967
|
71
|
+
rdworks-0.43.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
72
|
+
rdworks-0.43.3.dist-info/top_level.txt,sha256=05C98HbvBK2axUBogC_hAT_CdpOeQYGnQ6vRAgawr8s,8
|
73
|
+
rdworks-0.43.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|