|
42 | 42 | _logger = _logging.getLogger("pymbar") |
43 | 43 | _logger.setLevel(_logging.ERROR) |
44 | 44 |
|
45 | | - # Handle alchemlyb MBAR API changes. |
46 | | - try: |
47 | | - from alchemlyb.estimators import AutoMBAR as _AutoMBAR |
48 | | - except ImportError: |
49 | | - from alchemlyb.estimators import MBAR as _AutoMBAR |
50 | | - from alchemlyb.estimators import TI as _TI |
51 | | - from alchemlyb.postprocessors.units import to_kcalmol as _to_kcalmol |
52 | | - from alchemlyb.parsing.amber import extract_dHdl as _amber_extract_dHdl |
53 | | - from alchemlyb.parsing.amber import extract_u_nk as _amber_extract_u_nk |
54 | | - from alchemlyb.parsing.gmx import extract_dHdl as _gmx_extract_dHdl |
55 | | - from alchemlyb.parsing.gmx import extract_u_nk as _gmx_extract_u_nk |
56 | | - from alchemlyb.preprocessing.subsampling import ( |
57 | | - equilibrium_detection as _equilibrium_detection, |
58 | | - ) |
59 | | - from alchemlyb.preprocessing.subsampling import ( |
60 | | - statistical_inefficiency as _statistical_inefficiency, |
61 | | - ) |
62 | | - from alchemlyb.preprocessing.subsampling import slicing as _slicing |
63 | | - from alchemlyb.preprocessing.subsampling import decorrelate_u_nk, decorrelate_dhdl |
64 | | - from alchemlyb.postprocessors.units import to_kcalmol as _to_kcalmol |
65 | | - from alchemlyb.postprocessors.units import kJ2kcal as _kJ2kcal |
66 | | - from alchemlyb.postprocessors.units import R_kJmol as _R_kJmol |
67 | | - |
68 | 45 | from sire.legacy.Base import getBinDir as _getBinDir |
69 | 46 | from sire.legacy.Base import getShareDir as _getShareDir |
70 | 47 |
|
@@ -1305,7 +1282,11 @@ def _analyse_internal(files, temperatures, lambdas, engine, estimator, **kwargs) |
1305 | 1282 | import warnings as _warnings |
1306 | 1283 |
|
1307 | 1284 | import numpy as _np |
1308 | | - from alchemlyb.estimators import MBAR as _AutoMBAR |
| 1285 | + |
| 1286 | + try: |
| 1287 | + from alchemlyb.estimators import AutoMBAR as _AutoMBAR |
| 1288 | + except ImportError: |
| 1289 | + from alchemlyb.estimators import MBAR as _AutoMBAR |
1309 | 1290 | from alchemlyb.estimators import TI as _TI |
1310 | 1291 | from alchemlyb.postprocessors.units import to_kcalmol as _to_kcalmol |
1311 | 1292 |
|
|
0 commit comments