Go to file
Atsushi Togo 86aab3b45d Loosen heat capacity (numerical derivative) test in Cu-QHA 2022-06-27 15:14:19 +09:00
.github/workflows Loosen bulk_modulus test for Cu-QHA and add setting to make tests run on python 3.10 2022-06-27 15:08:26 +09:00
c Distribute fc2 prefering pure translation operations 2022-06-05 21:10:57 +09:00
conda Set matplotlib version requirement >=2.0 2021-10-26 12:43:55 +09:00
doc Documentation of dynamical structure factor updated 2022-06-26 19:10:39 +09:00
example Update NaCl-QE example 2022-06-23 09:14:07 +09:00
phonopy Add test of Cu-QHA for phonopy-qha --efe 2022-06-27 14:52:51 +09:00
scripts Loosen bulk_modulus in test_QHA_Cu and minor update text output 2022-06-27 15:05:02 +09:00
test Loosen heat capacity (numerical derivative) test in Cu-QHA 2022-06-27 15:14:19 +09:00
.gitignore Migrated some rst files to md 2022-01-07 17:41:14 +09:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2022-06-13 23:41:38 +00:00
CMakeLists.txt Numerical type change of regular grid from intc to int_ 2021-02-20 19:08:56 +09:00
LICENSE Add the name of phonopy project on LICENSE file 2016-11-29 07:23:29 +09:00
MANIFEST.in Fix MANIFEST.in and set version v2.9.3 2021-03-17 12:52:04 +09:00
README.md Update README.md for pre-commit information 2021-10-25 17:45:31 +09:00
build-wheels.sh Update to build pypi wheel for py3.9 2021-01-29 11:04:22 +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 Introduce isort 2021-10-23 12:23:12 +09:00
requirements.txt Update dependent software versions 2022-02-12 14:54:47 +09:00
setup.py Update dependent software versions 2022-02-12 14:54:47 +09:00

README.md

Version Badge Downloads Badge PyPI codecov

Phonopy

Phonon code. Phonopy user documentation is found at http://phonopy.github.io/phonopy/

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.

  • Python 3.7 will be the minimum requirement soon.

  • Formatting is written in pyproject.toml.

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

    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": ["--max-line-length=88", "--ignore=E203,W503"],
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": false,
    "python.linting.mypyEnabled": true,
    "python.linting.pycodestyleEnabled": false,
    "python.linting.pydocstyleEnabled": true,
    "python.formatting.provider": "black",
    "python.formatting.blackArgs": ["--line-length=88"],
    "python.sortImports.args": ["--profile", "black"],
    "[python]": {
        "editor.codeActionsOnSave": {
        "source.organizeImports": true
      },
    }
    
  • 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

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

You need pytest. At home directory of phonopy after setup,

% pytest