Seekpath is a Python module designed to obtain and visualize k-vector coefficients and automatically generate high-symmetry band paths in the Brillouin zone of crystal structures. It integrates with spglib for symmetry analysis and is widely used in materials science for electronic structure calculations. The current version is 2.2.1, with minor releases typically occurring every few months to address bug fixes and improve compatibility.
pip install seekpathVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to define a simple crystal structure (Silicon) and use `seekpath.get_path` to obtain the high-symmetry k-point path and coordinates in the Brillouin zone. The output `path_data` dictionary contains essential information for band structure calculations.
Upgrade `seekpath` to version 2.2.0 or newer: `pip install --upgrade seekpath`.
Upgrade `seekpath` to version 2.2.1 or newer to resolve these warnings: `pip install --upgrade seekpath`.
Ensure `lattice` and `positions` are `numpy.ndarray` with correct 3D shapes and `numbers` is a list or array of integers. Validate your input data before passing it to `get_path`.