File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Calculators
77 MMFFEnergy <_autosummary/stko.MMFFEnergy >
88 UFFEnergy <_autosummary/stko.UFFEnergy >
99 OpenBabelEnergy <_autosummary/stko.OpenBabelEnergy >
10+ OpenMMEnergy <_autosummary/stko.OpenMMEnergy >
1011 XTBEnergy <_autosummary/stko.XTBEnergy >
1112 OrcaEnergy <_autosummary/stko.OrcaEnergy >
1213 RmsdCalculator <_autosummary/stko.RmsdCalculator >
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ Optimizers
2020 MMFF <_autosummary/stko.MMFF >
2121 MetalOptimizer <_autosummary/stko.MetalOptimizer >
2222 OpenBabel <_autosummary/stko.OpenBabel >
23+ OpenMMForceField <_autosummary/stko.OpenMMForceField >
24+ OpenMMMD <_autosummary/stko.OpenMMMD >
2325 GulpUFFOptimizer <_autosummary/stko.GulpUFFOptimizer >
2426 MacroModelForceField <_autosummary/stko.MacroModelForceField >
2527 XTB <_autosummary/stko.XTB >
Original file line number Diff line number Diff line change 11"""Molecular optimisers and property calculators for use with :mod:`stk`."""
22
3+ import contextlib
4+
35from stko import functional_groups , molecule_analysis
46from stko ._internal .calculators .extractors .orca_extractor import OrcaExtractor
57from stko ._internal .calculators .extractors .xtb_extractor import XTBExtractor
68from stko ._internal .calculators .open_babel_calculators import OpenBabelEnergy
7- from stko ._internal .calculators .openmm_calculators import OpenMMEnergy
89from stko ._internal .calculators .orca_calculators import OrcaEnergy
910from stko ._internal .calculators .planarity_calculators import (
1011 PlanarityCalculator ,
6970 MacroModelMD ,
7071)
7172from stko ._internal .optimizers .open_babel import OpenBabel
72- from stko ._internal .optimizers .openmm import OpenMMForceField , OpenMMMD
7373from stko ._internal .optimizers .optimizers import (
7474 NullOptimizer ,
7575 Optimizer ,
114114 vector_angle ,
115115)
116116
117+ with contextlib .suppress (ImportError ):
118+ from stko ._internal .calculators .openmm_calculators import OpenMMEnergy
119+ from stko ._internal .optimizers .openmm import OpenMMForceField , OpenMMMD
120+
117121MoleculeT = MoleculeT # noqa: PLW0127
118122"""Type parameter matching any :class:`stk.Molecule` or subclasses."""
119123
You can’t perform that action at this time.
0 commit comments