Coverage for dynasor/qpoints/__init__.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.17.2, created at 2026-11-09 14:30 +0000

1""" 

2Generation of the q-points at which correlation functions are evaluated. 

3 

4Two sampling strategies are available. :func:`~dynasor.qpoints.get_spherical_qpoints` 

5samples the reciprocal lattice isotropically inside a radius, which is what an 

6isotropic system such as a liquid or a powder calls for. 

7:class:`~dynasor.qpoints.Lattice` and 

8:func:`~dynasor.qpoints.get_supercell_qpoints_along_path` instead yield only the 

9q-points commensurate with a given supercell, i.e. the ones a simulation in that 

10supercell can actually resolve, which is what lattice dynamics of a crystal 

11requires. :func:`~dynasor.qpoints.is_qpoint_commensurate` tests a single 

12q-point against a cell. 

13""" 

14 

15from dynasor.qpoints.spherical_qpoints import get_spherical_qpoints 

16from dynasor.qpoints.lattice import ( 

17 Lattice, 

18 get_P_matrix, 

19 get_supercell_qpoints_along_path, 

20 is_qpoint_commensurate, 

21) 

22 

23 

24__all__ = ['Lattice', 

25 'get_P_matrix', 

26 'get_spherical_qpoints', 

27 'get_supercell_qpoints_along_path', 

28 'is_qpoint_commensurate']