lineshape_tools
lineshape_tools is a Python software that implements the formulation for evaluating the effects of electron-phonon coupling on the optical properties of defects.
In particular, it implements the approach pioneered by Alkauskas et al. to compute the lineshape function within Huang-Rhys theory.
The code interfaces with mace and phonopy to evaluate the dynamical matrix and obtain the phonons of a defect-containing supercell.
Key Features:
- Compute the temperature-dependent luminescence and absorption spectrum
- Compatible with phonons computed directly with Phonopy
- Accelerate evaluation of phonons with
macefoundation models - Convenience tools to fine-tune a
macefoundation model to your specific system
Installation
To install the latest version of lineshape_tools, create a new virtual environment and run
pip install lineshape_tools
For more installation information and some performance considerations, see the Installation page.
Usage
lineshape_tools provides a command-line interface for interacting with the code. See
lineshape_tools --help
Detailed usage information can be found in the Tutorials page.
How to Cite
If you use this code, please consider citing
@misc{turiansky_machine_2025,
title = {Machine Learning Phonon Spectra for Fast and Accurate Optical Lineshapes of Defects},
author = {Mark E. Turiansky and John L. Lyons and Noam Bernstein},
year = {2025},
number = {arXiv:2508.09113},
eprint = {2508.09113},
archiveprefix = {arXiv},
primaryclass = {cond-mat.mtrl-sci},
doi = {10.48550/arXiv.2508.09113},
url = {https://arxiv.org/abs/2508.09113},
}
Please also consider citing the foundational works that made this code possible on the Citation page.
Metadata
Release files for lineshape_tools 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lineshape_tools-0.2.0.tar.gz | 2.2 MB | Without provenance | Details for lineshape_tools-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lineshape_tools-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for lineshape_tools-0.2.0-py3-none-any.whl |
Total release size: 3.2 MB
Release files / lineshape_tools-0.2.0.tar.gz
| Download URL | lineshape_tools-0.2.0.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00d6d0d328bebd4560bd701deca1da317df104f9bae5aece585f40c46abd0ff3
|
|
BLAKE2b-256 checksum How to use checksums |
1fa017ac01b5a440f3aa24de50ccba5df33358d48395a3ff175a97f90ff438c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.10.12 Linux/5.15.0-185-fips
|
Release files / lineshape_tools-0.2.0-py3-none-any.whl
| Download URL | lineshape_tools-0.2.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac752fc50dfaea38e48e9b72df780052202ecef3863e87700422d4cfe2e402ff
|
|
BLAKE2b-256 checksum How to use checksums |
e7e75617991c5e316d12ea6b86cd76000e050ec3e513776542c372c4b4c26059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.10.12 Linux/5.15.0-185-fips
|
Security for lineshape_tools 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.