anaddb_irreps
A simple wrapper of the phonopy irreps module for finding irreducible representations of phonon modes in ABINIT's anaddb output.
Features
- Automatic high-symmetry analysis: Analyzes all high-symmetry k-points (GM, X, M, R, etc.) automatically
- Dual-label display at Gamma: Shows both Mulliken (T1u, Eg, etc.) and BCS (GM4-, GM5+, etc.) notation side-by-side
- Spectroscopic activity: Identifies IR- and Raman-active modes at Γ point
- Multiple input formats: Supports both anaddb PHBST NetCDF files and phonopy params/YAML files
- Dual backend support:
phonopybackend: Γ-point analysis with IR/Raman activity (used automatically at Gamma)irrepbackend: Non-Gamma point analysis using theirreppackage (used automatically for other points)
- CLI and Python API: Flexible usage through command-line tools or Python functions
- Complete symmetry information: Reports both space group and point group for the crystal
Installation
Basic Installation
Install from PyPI:
pip install anaddb_irreps
Optional Dependencies
For non-Gamma phonons (k-points other than Γ), install with the irrep backend:
pip install "anaddb_irreps[irrep]"
For ABINIT support (reading PHBST NetCDF files), install with the abipy optional dependency:
pip install "anaddb_irreps[abipy]"
To install all optional dependencies:
pip install "anaddb_irreps[irrep,abipy]"
Documentation
- Usage Guide: Complete API and CLI reference with examples for all features
- Irreducible Representation Labeling Guide: Mathematical foundations, Mulliken notation, and tutorial for non-Gamma phonons (e.g., X and M points in BaTiO3)
- IR and Raman Activity Methodology: Scientific guide to the group-theoretical method used to identify spectroscopic activity, with TmFeO3 case study
Quick Start
Python API
from anaddb_irreps import print_irreps_phonopy
# Analyze Gamma point
print_irreps_phonopy("phonopy_params.yaml", qpoint=[0, 0, 0])
# Show both Mulliken and BCS labels at Gamma
print_irreps_phonopy("phonopy_params.yaml", qpoint=[0, 0, 0], both_labels=True)
# Analyze non-Gamma point (requires irrep backend)
print_irreps_phonopy(
"phonopy_params.yaml",
qpoint=[0.5, 0.5, 0],
backend="irrep",
kpname="M"
)
Command Line
phonopy-irreps (Auto-discovery mode)
# Analyze all high-symmetry k-points automatically
phonopy-irreps --params phonopy_params.yaml
# Output shows all high-symmetry points:
# - GM point: dual labels (Mulliken + BCS) + IR/Raman activity
# - Other points (M, R, X, etc.): BCS labels
anaddb-irreps (Manual mode for PHBST files)
# PHBST files require explicit q-point index (no auto-discovery)
anaddb-irreps --phbst run_PHBST.nc --q-index 0
# For non-Gamma points, specify backend and k-point name
anaddb-irreps --phbst run_PHBST.nc --q-index 5 --backend irrep --kpname M
Output Examples
Automatic high-symmetry analysis (phonopy-irreps)
When you run phonopy-irreps --params phonopy_params.yaml, it automatically:
- Discovers all high-symmetry k-points from the space group
- Shows dual labels (Mulliken + BCS) at Gamma point with IR/Raman activity
- Shows BCS labels for other high-symmetry points
Space group: Pm-3m
Found 4 high-symmetry points:
GM: k=(0.0, 0.0, 0.0)
M: k=(0.5, 0.5, 0.0)
R: k=(0.5, 0.5, 0.5)
X: k=(0.0, 0.5, 0.0)
# GM point (k=(0.0, 0.0, 0.0))
============================================================
q-point: [0.0000, 0.0000, 0.0000]
Space group: Pm-3m
Point group: m-3m
# qx qy qz band freq(THz) freq(cm-1) label(M) label(BCS) IR Raman
0.0000 0.0000 0.0000 0 -6.0487 -201.76 T1u GM4- Y .
0.0000 0.0000 0.0000 9 8.5335 284.65 T2u GM5- . .
# X point (k=(0.0, 0.5, 0.0))
============================================================
q-point: [0.0000, 0.5000, 0.0000]
Space group: Pm-3m
Point group: m-3m
# qx qy qz band freq(THz) freq(cm-1) label
0.0000 0.5000 0.0000 0 -4.8804 -162.79 X5+
0.0000 0.5000 0.0000 2 3.3171 110.65 X5-
Examples
See examples/MoS2_1T/ for a complete working example with MoS2 1T structure using anaddb output.
See docs/irreps_guide.md for BaTiO3 examples demonstrating both Gamma and non-Gamma point analysis.
License
BSD-2-clause
Metadata
Release files for anaddb-irreps 0.1.4
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 |
|---|---|---|---|---|
| anaddb_irreps-0.1.4.tar.gz | 15.9 kB | Without provenance | Details for anaddb_irreps-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anaddb_irreps-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for anaddb_irreps-0.1.4-py3-none-any.whl |
Total release size: 32.5 kB
Release files / anaddb_irreps-0.1.4.tar.gz
| Download URL | anaddb_irreps-0.1.4.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ba7f99d13ff97807a276d79a73d6ff4a0bce755d567b7abc165eee5bcd0c1bf
|
|
BLAKE2b-256 checksum How to use checksums |
419d5bc5089e9c2dfc06351fb65c9931ad25cb0f1d373f5bef38a1f92b66a829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / anaddb_irreps-0.1.4-py3-none-any.whl
| Download URL | anaddb_irreps-0.1.4-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46f5f0acc131b1e70bd410dcc4d6067e50116708dc2de055ffcd00ceee64dd6b
|
|
BLAKE2b-256 checksum How to use checksums |
83c4f6690e15a2b20215cba6ebb46da2b7ffbae7f4b9edf974c5a946f12c7dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for anaddb-irreps 0.1.4
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.