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

7 statements  

« prev     ^ index     » next       coverage.py v7.5.3, created at 2024-08-05 14:37 +0000

1import warnings 

2 

3try: 

4 from numpy.exceptions import VisibleDeprecationWarning # NumPy 2.0.0 

5except ImportError: 

6 from numpy import VisibleDeprecationWarning 

7 

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

9 

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

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

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

13 "version of ASE.", 

14 VisibleDeprecationWarning)