Go to file
Atsushi Togo c0dfe172ae Update README.md 2024-06-21 14:20:10 +09:00
.github Update github workflows to use symfc 2024-06-19 15:30:27 +09:00
c Minor refactoring 2024-04-21 14:02:28 +09:00
ctest Improve tests of get_bz_triplets_at_q 2023-02-08 12:02:49 +09:00
doc Set version 3.1.2 2024-06-19 19:56:29 +09:00
example [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-01-29 21:20:40 +00:00
fortran Fix fortran interface of gridsys_rotate_bz_grid_index 2023-02-03 10:27:17 +09:00
phono3py Migrate to ruff 2024-06-21 13:49:24 +09:00
scripts Migrate to ruff 2024-06-21 13:49:24 +09:00
test Migrate to ruff 2024-06-21 13:49:24 +09:00
.clang-format Update cmake recipe for c modules 2023-01-20 16:37:58 +09:00
.gitignore Update fortran test_get_bz_grid_addresses 2023-01-30 22:03:40 +09:00
.pre-commit-config.yaml Migrate to ruff 2024-06-21 13:49:24 +09:00
CMakeLists.txt Add PHPHCALC_USE_MTBLAS option to build it 2024-04-21 14:02:09 +09:00
LICENSE Update top page of web site 2024-02-22 22:24:52 +09:00
MANIFEST.in Update MANIFEST.in to include test 2022-10-06 09:20:43 +09:00
README.md Update README.md 2024-06-21 14:20:10 +09:00
get_nanoversion.sh Deploy test 2020-05-03 00:34:21 +09:00
pyproject.toml Migrate to ruff 2024-06-21 13:49:24 +09:00
requirements.txt Set version v3.1.0 2024-06-07 11:45:42 +09:00
setup.cfg Add setup.cfg 2022-11-12 22:39:31 +09:00
setup.py Migrate to ruff 2024-06-21 13:49:24 +09:00

README.md

Version Badge Downloads Badge PyPI version PyPI codecov

phono3py

A simulation package of phonon-phonon interaction related properties mainly written in python. Phono3py user documentation is found at http://phonopy.github.io/phono3py/.

Mailing list for questions

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

Dependency

See requirements.txt. Optionally symfc and scipy are required for using additional features.

Development

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

  • Github issues is the place to discuss about phono3py issues.

  • Github pull request is the place to request merging source code.

  • Formatting rules are found in pyproject.toml.

  • 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"
        }
    },
    
  • Use of pre-commit (https://pre-commit.com/) is encouraged.

    • 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.

Documentation

Phono3py 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