Coverage for /builds/ase/ase/ase/dft/band_structure.py: 71.43%

7 statements  

« prev     ^ index     » next       coverage.py v7.5.3, created at 2025-08-02 00:12 +0000

1# fmt: off 

2 

3import warnings 

4 

5try: 

6 from numpy.exceptions import VisibleDeprecationWarning # NumPy 2.0.0 

7except ImportError: 

8 from numpy import ( # type: ignore[attr-defined,no-redef] 

9 VisibleDeprecationWarning, 

10 ) 

11 

12from ase.spectrum.band_structure import * # noqa: F401,F403 

13 

14warnings.warn("ase.dft.band_structure has been moved to " 

15 "ase.spectrum.band_structure. Please update your " 

16 "scripts; this alias will be removed in a future " 

17 "version of ASE.", 

18 VisibleDeprecationWarning)