Go to file
Atsushi Togo 8df7524ca5 Save mlp_eval_dataset only when generated disps 2025-02-13 16:11:12 +09:00
.github/workflows Make wheels 2025-01-27 16:05:02 +09:00
c Change long to int64_t 2025-01-27 09:38:18 +09:00
doc Set version 2.37.0 2025-02-07 18:28:01 +09:00
example Change default disp-distance for pypolymlp 2025-01-19 17:51:47 +09:00
phonopy Save mlp_eval_dataset only when generated disps 2025-02-13 16:11:12 +09:00
test Twice more supercells by --rd auto 2025-02-07 18:22:57 +09:00
.gitignore Updated .gitignore file 2024-07-13 08:49:22 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2025-02-11 00:05:13 +00:00
CMakeLists.txt PHONOPY_USE_OMP environment for build 2024-07-07 22:06:23 +09:00
LICENSE Update top page of web site 2024-02-22 22:22:12 +09:00
MANIFEST.in Fix MANIFEST.in and set version v2.9.3 2021-03-17 12:52:04 +09:00
README.md Add python 3.13 in CI 2024-11-09 19:33:43 +09:00
build-wheels.sh Update to build pypi wheel for py3.9 2021-01-29 11:04:22 +09:00
cmake-format.py Set version 2.26.1 2024-07-07 15:14:24 +09:00
dev-requirements.txt Updated document, installation, and packaging related files. 2020-07-22 15:40:36 +09:00
get_nanoversion.sh Update packaging scripts 2020-05-03 09:53:01 +09:00
pyproject.toml Set version 2.36.0 2025-02-05 10:41:11 +09:00
requirements.txt Replace get_symmetry_dataset by get_magnetic_symmetry_dataset 2024-03-29 10:35:22 +09:00

README.md

Version Badge Downloads Badge PyPI codecov

Phonopy

Phonon code mainly written in python. Phonopy user documentation is found at http://phonopy.github.io/phonopy/

Installation

See https://phonopy.github.io/phonopy/install.html.

Mailing list for questions

Usual phonopy questions should be sent to phonopy mailing list (https://sourceforge.net/p/phonopy/mailman/).

Development

The development of phonopy is managed on the develop branch of github phonopy repository.

  • Github issues is the place to discuss about phonopy issues.
  • Github pull request is the place to request merging source code.

Formatting

Formatting rules are found in pyproject.toml.

pre-commit

Pre-commit (https://pre-commit.com/) is mainly used for applying the formatting rules automatically. Therefore, it is strongly encouraged to use it at or before git-commit. Pre-commit is set-up and used in the following way:

  • Installed by pip install pre-commit, conda install pre_commit or see https://pre-commit.com/#install.
  • pre-commit hook is installed by pre-commit install.
  • pre-commit hook is run by pre-commit run --all-files.

Unless running pre-commit, pre-commit.ci may push the fix at PR by github action. In this case, the fix should be merged by the contributor's repository.

VSCode setting

  • Not strictly, but VSCode's settings.json may be written like below

    "ruff.lint.args": [
        "--config=${workspaceFolder}/pyproject.toml",
    ],
    "[python]": {
        "editor.defaultFormatter": "charliermarsh.ruff",
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit"
        }
    },
    

Documentation

Phonopy user documentation is written using python sphinx. The source files are stored in doc directory. Please see how to write the documentation at doc/README.md.

How to run tests

Tests are written using pytest. To run tests, pytest has to be installed. The tests can be run by

% pytest