-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lattice dynamics workflow using Pheasy #1063
base: main
Are you sure you want to change the base?
Lattice dynamics workflow using Pheasy #1063
Conversation
Modified some parts based on Janine's comments.
…atomate2 into atomate2_jz_pheasy
…group for crystals.
tests/vasp/flows/test_phonons.py
Outdated
@@ -202,6 +202,8 @@ def test_phonon_wf_vasp_only_displacements_no_structural_transformation( | |||
assert_allclose( | |||
responses[job.jobs[-1].uuid][1].output.primitive_matrix, | |||
((0, 1, 0), (0, 0, 1), (1, 0, 0)), | |||
rtol=1e-8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hrushikesh-s @naik-aakash and I are working on fixing these tests. I think I messed something up with the test files. I might have time later tonight. So, maybe skip those tests first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aah. Sorry! Different test 😅. But I meant the update to the latest phonopy. Sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh okay okay. I was wondering why suddenly the test_phonons.py file was failing 😅
* bug fix for linear strain qha maker * refactor to only rely on one method to generate supercells * fix tests * add test * add test 2 * fix type annotation * fix type annotation * fix docs * fix docs * add test for supercell * fix supercell tests * fix supercell tests
…ialsproject#1064) * fix lints and typos * fix generate_phonon_displacements side effect: removes magmoms of passed structure in-place * fix ruff PYI063 Use PEP 570 syntax for positional-only parameters
Bumps [emmet-core](https://github.com/materialsproject/emmet) from 0.84.3rc3 to 0.84.3rc4. - [Release notes](https://github.com/materialsproject/emmet/releases) - [Changelog](https://github.com/materialsproject/emmet/blob/main/docs/CHANGELOG.md) - [Commits](materialsproject/emmet@0.84.3rc3...0.84.3rc4) --- updated-dependencies: - dependency-name: emmet-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [jobflow](https://github.com/materialsproject/jobflow) from 0.1.18 to 0.1.19. - [Release notes](https://github.com/materialsproject/jobflow/releases) - [Changelog](https://github.com/materialsproject/jobflow/blob/main/CHANGELOG.md) - [Commits](materialsproject/jobflow@v0.1.18...v0.1.19) --- updated-dependencies: - dependency-name: jobflow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dration (materialsproject#1072) * update EOS docs * udpate docs with implementation details * add convenience constructor method for forcefield ElasticMaker * allow MLFF enum to treat str(MLFF.) as valid member * precommit * add small MLFF test
* bump phonopy version * Update pyproject.toml * replace bs plotter with pymatgen implementation > reduce code repetition * replace bs plotter with pymatgen implementation > reduce code repetition * switch off grunesien computation at gamma (unstable) * fix assertions to correct expected derived properties * fix failing test (use correct reference data) * remove non used test_data, rename Si_phonons_4 > Si_phonons_3 * point to renamed ref test_data --------- Co-authored-by: J. George <[email protected]>
Bumps mp-api from 0.42.2 to 0.43.0. --- updated-dependencies: - dependency-name: mp-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.3 to 8.3.4. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.3...8.3.4) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ipython](https://github.com/ipython/ipython) from 8.29.0 to 8.30.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@8.29.0...8.30.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sevenn](https://github.com/MDIL-SNU/SevenNet) from 0.10.1 to 0.10.2. - [Release notes](https://github.com/MDIL-SNU/SevenNet/releases) - [Changelog](https://github.com/MDIL-SNU/SevenNet/blob/main/CHANGELOG.md) - [Commits](MDIL-SNU/SevenNet@v0.10.1...v0.10.2) --- updated-dependencies: - dependency-name: sevenn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [emmet-core](https://github.com/materialsproject/emmet) from 0.84.3rc4 to 0.84.3rc6. - [Release notes](https://github.com/materialsproject/emmet/releases) - [Changelog](https://github.com/materialsproject/emmet/blob/main/docs/CHANGELOG.md) - [Commits](materialsproject/emmet@0.84.3rc4...v0.84.3rc6) --- updated-dependencies: - dependency-name: emmet-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@JaGeo , The test fails because GH can't find FORCECONSTANTS file in the temp folder. However, when I run the same test locally, I am able to successfully run it. Can you pls help? |
@hrushikesh-s I will try to look into it. Could you add all installation instructions to the documentation as well? |
@hrushikesh-s Locally, it fails for me with exactly the same error. Are you sure you have the same pheasy, ALM and phonopy versions? I only have a force_matrix.pkl file in the last folder but no FORCE_CONSTANT file |
I also got a numpy error. Something in the pheasy commands seems to go wrong. |
Doing this now
Checking this now |
Summary
Include a summary of major changes in bullet points:
Additional dependencies introduced (if any)
significantly useful functionality is perfectly fine, adding ones that add trivial
functionality, e.g., to use one single easily implementable function, is frowned upon.
Justify why that dependency is needed. Especially frowned upon are circular dependencies.
TODO (if any)
If this is a work-in-progress, write something about what else needs to be done.
Checklist
Work-in-progress pull requests are encouraged, but please put [WIP] in the pull request
title.
Before a pull request can be merged, the following items must be checked:
The easiest way to handle this is to run the following in the correct sequence on
your local machine. Start with running
ruff
andruff format
on your new code. This willautomatically reformat your code to PEP8 conventions and fix many linting issues.
Run ruff on your code.
type check your code.
Note that the CI system will run all the above checks. But it will be much more
efficient if you already fix most errors prior to submitting the PR. It is highly
recommended that you use the pre-commit hook provided in the repository. Simply run
pre-commit install
and a check will be run prior to allowing commits.