Coverage for /builds/debichem-team/python-ase/ase/dft/band_structure.py: 71.43%
7 statements
« prev ^ index » next coverage.py v7.5.3, created at 2025-03-06 04:00 +0000
« prev ^ index » next coverage.py v7.5.3, created at 2025-03-06 04:00 +0000
1import warnings
3try:
4 from numpy.exceptions import VisibleDeprecationWarning # NumPy 2.0.0
5except ImportError:
6 from numpy import ( # type: ignore[attr-defined,no-redef]
7 VisibleDeprecationWarning,
8 )
10from ase.spectrum.band_structure import * # noqa: F401,F403
12warnings.warn("ase.dft.band_structure has been moved to "
13 "ase.spectrum.band_structure. Please update your "
14 "scripts; this alias will be removed in a future "
15 "version of ASE.",
16 VisibleDeprecationWarning)