Coverage for /builds/kinetik161/ase/ase/neb.py: 78.95%
19 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
1"""Temporary file while we deprecate this location."""
3from ase.mep import NEB as RealNEB
4from ase.mep import NEBTools as RealNEBTools
5from ase.mep import idpp_interpolate as realidpp_interpolate
6from ase.mep import interpolate as realinterpolate
7from ase.utils import deprecated
10class NEB(RealNEB):
11 @deprecated('Please import NEB from ase.mep, not ase.neb.')
12 def __init__(self, *args, **kwargs):
13 """
14 .. deprecated:: 3.23.0
15 Please import :class:`~ase.mep.neb.NEB` from :mod:`ase.mep`
16 """
17 super().__init__(*args, **kwargs)
20class NEBTools(RealNEBTools):
21 @deprecated('Please import NEBTools from ase.mep, not ase.neb.')
22 def __init__(self, *args, **kwargs):
23 """
24 .. deprecated:: 3.23.0
25 Please import :class:`~ase.mep.neb.NEBTools`` from :mod:`ase.mep`
26 """
27 super().__init__(*args, **kwargs)
30@deprecated('Please import interpolate from ase.mep, not ase.neb.')
31def interpolate(*args, **kwargs):
32 """
33 .. deprecated:: 3.23.0
34 Please import :func:`~ase.mep.neb.interpolate` from :mod:`ase.mep`
35 """
36 return realinterpolate(*args, **kwargs)
39@deprecated('Please import idpp_interpolate from ase.mep, not ase.neb.')
40def idpp_interpolate(*args, **kwargs):
41 """
42 .. deprecated:: 3.23.0
43 Please import :func:`~ase.mep.neb.idpp_interpolate` from
44 :mod:`ase.mep`
45 """
46 return realidpp_interpolate(*args, **kwargs)