Lobsterpy is a Python package designed for automatic bonding analysis derived from LOBSTER calculations, which themselves process VASP output. It helps researchers analyze chemical bonding in materials efficiently. The current version is 0.6.0, and the project is under active development with irregular but consistent releases.
pip install lobsterpyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to initialize `LobsterpyAnalysis` with a LOBSTER/VASP calculation directory and extract basic bonding and population data. Ensure the `path_to_lobster_calc` variable points to a directory containing all necessary LOBSTER and VASP output files.
Update your imports from `from lobsterpy.analysis import ...` to `from lobsterpy.cohp.analyze import ...` and `from lobsterpy.data import ...` to `from lobsterpy.cohp.data import ...`. Review the changelog for specific method signature changes.
Verify that `path_to_lobster_calc` is a valid path and contains all required output files from a successful LOBSTER calculation (e.g., COHPCAR.lobster, ICOHPCAR.lobster, DOSCAR.lobster, vasprun.xml, POSCAR, KPOINTS, POTCAR, INCAR).
Instead of calling methods like `analyzer.plot_cohps()`, import plotting functions from `from lobsterpy.plotting import plotting` (or similar) and pass the analysis data to them.