File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1- """Phonon DOS and bandstructure analysis package."""
1+ """pymatgen phonon package with functionality for phonon DOS + bandstructure analysis and more."""
2+
3+ from __future__ import annotations
4+
5+ from pymatgen .phonon .bandstructure import PhononBandStructure , PhononBandStructureSymmLine
6+ from pymatgen .phonon .dos import CompletePhononDos , PhononDos
7+ from pymatgen .phonon .gruneisen import (
8+ GruneisenParameter ,
9+ GruneisenPhononBandStructure ,
10+ GruneisenPhononBandStructureSymmLine ,
11+ )
12+ from pymatgen .phonon .ir_spectra import IRDielectricTensor
13+ from pymatgen .phonon .plotter import (
14+ GruneisenPhononBSPlotter ,
15+ GruneisenPlotter ,
16+ PhononBSPlotter ,
17+ PhononDosPlotter ,
18+ ThermoPlotter ,
19+ plot_brillouin_zone ,
20+ )
21+ from pymatgen .phonon .thermal_displacements import ThermalDisplacementMatrices
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ import pymatgen .phonon as ph
4+ import pymatgen .phonon .bandstructure as bs
5+ import pymatgen .phonon .dos as dos
6+ import pymatgen .phonon .gruneisen as gru
7+ import pymatgen .phonon .plotter as plotter
8+
9+
10+ def test_convenience_imports ():
11+ assert ph .PhononBandStructure == bs .PhononBandStructure
12+ assert ph .PhononBandStructureSymmLine == bs .PhononBandStructureSymmLine
13+ assert ph .PhononDos == dos .PhononDos
14+ assert ph .CompletePhononDos == dos .CompletePhononDos
15+ assert ph .GruneisenParameter == gru .GruneisenParameter
16+ assert ph .GruneisenPhononBandStructure == gru .GruneisenPhononBandStructure
17+ assert ph .GruneisenPhononBandStructureSymmLine == gru .GruneisenPhononBandStructureSymmLine
18+ assert ph .PhononDosPlotter == plotter .PhononDosPlotter
19+ assert ph .PhononBSPlotter == plotter .PhononBSPlotter
20+ assert ph .GruneisenPlotter == plotter .GruneisenPlotter
21+ assert ph .GruneisenPhononBSPlotter == plotter .GruneisenPhononBSPlotter
You can’t perform that action at this time.
0 commit comments