Skip to content
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

Open
wants to merge 108 commits into
base: main
Choose a base branch
from

Conversation

hrushikesh-s
Copy link
Collaborator

Summary

Include a summary of major changes in bullet points:

  • Feature 1
  • Fix 1

Additional dependencies introduced (if any)

  • List all new dependencies needed and justify why. While adding dependencies that bring
    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.

  • Feature 1 supports A, but not B.

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:

  • Code is in the standard Python style.
    The easiest way to handle this is to run the following in the correct sequence on
    your local machine. Start with running ruff and ruff format on your new code. This will
    automatically reformat your code to PEP8 conventions and fix many linting issues.
  • Doc strings have been added in the Numpy docstring format.
    Run ruff on your code.
  • Type annotations are highly encouraged. Run mypy to
    type check your code.
  • Tests have been added for any new functionality or bug fixes.
  • All linting and tests pass.

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.

@@ -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,
Copy link
Member

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.

Copy link
Member

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!

Copy link
Collaborator Author

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 😅

JaGeo and others added 22 commits December 9, 2024 23:00
* 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>
@hrushikesh-s
Copy link
Collaborator Author

@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?

@JaGeo
Copy link
Member

JaGeo commented Dec 11, 2024

@hrushikesh-s I will try to look into it. Could you add all installation instructions to the documentation as well?

@JaGeo
Copy link
Member

JaGeo commented Dec 11, 2024

@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

@JaGeo
Copy link
Member

JaGeo commented Dec 11, 2024

I also got a numpy error. Something in the pheasy commands seems to go wrong.

@hrushikesh-s
Copy link
Collaborator Author

@hrushikesh-s I will try to look into it. Could you add all installation instructions to the documentation as well?
Yes.

Doing this now

@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

Checking this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants