Abinit dfpt - #2
Conversation
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.1 to 8.4.2. - [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.4.1...8.4.2) --- updated-dependencies: - dependency-name: pytest dependency-version: 8.4.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 4.4.6 to 4.4.7. - [Release notes](https://github.com/jupyterlab/jupyterlab/releases) - [Changelog](https://github.com/jupyterlab/jupyterlab/blob/main/RELEASE.md) - [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/lsp@4.4.6...@jupyterlab/lsp@4.4.7) --- updated-dependencies: - dependency-name: jupyterlab dependency-version: 4.4.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.3.0 to 7.0.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v6.3.0...v7.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.14.1 to 3.15.0. - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest-mock@v3.14.1...v3.15.0) --- updated-dependencies: - dependency-name: pytest-mock dependency-version: 3.15.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
gpetretto
left a comment
There was a problem hiding this comment.
Thanks @emarazzi and @VicTrqt for all the work.
I have added several comments, but hopefully these should not require large changes in the logic and in the code.
I have a few general comments:
-
I think that there are sometimes some commented parts of old version of the code. If something is outdated or not relevant for the current choices it would be better to remove them.
-
according to github, there are 206
.gzfiles that will be added with this PR, for a single test. I just wanted to be sure if this is really the bare minimum that it is required, since they are quite a lot. If all the jobs and files are needed, than it is fine like this. Just one thing though. I think there is a problem in this old part of the code:atomate2/src/atomate2/cli/dev.py
Lines 370 to 373 in aeee107
Here theemptyfile is always created. As a result:- the
.emptyfile is zipped. I don't know if it is better this, but I am not sure it was intended. It can also stay this way, but would be better to decide. - there are a lot of
.empty.gzin folders that are not empty.
So I am wondering:
- Is it really needed to have those empty folders in the references?
- If yes (or at least we prefer to keep it this way for any reason), can you modify the
abinit_test_datafunction, so that it only creates the file if the directory is actually empty? (Either by creating it only if the directory is really empty or by removing it when a file is copied there).
- the
| - name: Install conda dependencies | ||
| run: | | ||
| micromamba install -n a2 -c conda-forge enumlib packmol bader --yes | ||
| micromamba install -n a2 -c conda-forge enumlib packmol bader abinit --yes |
There was a problem hiding this comment.
Why is abinit needed? To test stuff like k/q points generation?
In general I am not sure if it is a good idea to have this dependence, since the version on conda-forge is 10.0.3. It may be that in the future this will give raise to incompatibilities between the abinit version availabe and the python, that may require a later or older version.
I think we can leave it like this at the moment and monitor how things will evolve, but if this will be cause for tests failing they may ask us to disable them.
There was a problem hiding this comment.
If I remember correctly, it is because it is needed for the tests to generate the proper perturbations
There was a problem hiding this comment.
I left a comment to indicate why we need abinit
There was a problem hiding this comment.
Fine with me, maybe let's mention this when the real PR is opened.
| [project.optional-dependencies] | ||
| abinit = ["abipy>=0.9.3"] | ||
| #abinit = ["abipy>=0.9.3"] | ||
| abinit = ["abipy @ git+https://github.com/abinit/abipy.git"] # tmp |
There was a problem hiding this comment.
just a note to remember to switch to a released abipy version before opening the PR
1st round of guido's review + linting
Bumps [fireworks](https://github.com/materialsproject/fireworks) from 2.0.5 to 2.0.6. - [Release notes](https://github.com/materialsproject/fireworks/releases) - [Changelog](https://github.com/materialsproject/fireworks/blob/main/docs/changelog.html) - [Commits](materialsproject/fireworks@v2.0.5...v2.0.6) --- updated-dependencies: - dependency-name: fireworks dependency-version: 2.0.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [furo](https://github.com/pradyunsg/furo) from 2025.7.19 to 2025.9.25. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2025.07.19...2025.09.25) --- updated-dependencies: - dependency-name: furo dependency-version: 2025.9.25 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump calorine to 3.2 for py >= 3.12
address 2nd round Guido's review
Fix append_name rf jobs
* Readd aims magnetism test * Update pymatgen version * Fixes magnetic test if latest pymatgen/pymatgen-io-aims installed * Add FHI-aims dep to testing * add pymatgen dependence to aims * temp emmet core upper pin * add aims to strict * migrate import statement * Fix errors from new pymatgen interface 1) Energy -> Free Energy in FHI-aims for Force Consistent energies 2) up pymatgen-io-aims to account for stress definition differences * modify pyproject to see why there is the conflict * Remove pymatgen <2025.10.7 from pyproject * Add aims dep to another set of tests * bump pymatgen-io-aims version again * Update pyproject to test if errors persist * tweak test tol --------- Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com> Co-authored-by: esoteric-ephemera <aaron.kaplan.physics@gmail.com>
Bumps [openmm](https://github.com/openmm/openmm-org) from 8.2.0 to 8.3.1. - [Commits](https://github.com/openmm/openmm-org/commits) --- updated-dependencies: - dependency-name: openmm dependency-version: 8.3.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com>
Bumps [pymatgen](https://github.com/materialsproject/pymatgen) from 2025.6.14 to 2025.10.7. - [Release notes](https://github.com/materialsproject/pymatgen/releases) - [Changelog](https://github.com/materialsproject/pymatgen/blob/master/docs/CHANGES.md) - [Commits](materialsproject/pymatgen@v2025.6.14...v2025.10.7) --- updated-dependencies: - dependency-name: pymatgen dependency-version: 2025.10.7 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com>
* make abinit config dir before imported * update abipy monkeypatching
Bumps [pytest](https://github.com/pytest-dev/pytest) from 9.0.3 to 9.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.0.3...9.1.1) --- updated-dependencies: - dependency-name: pytest dependency-version: 9.1.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [calorine](https://gitlab.com/materials-modeling/calorine) from 3.3 to 3.4. - [Release notes](https://gitlab.com/materials-modeling/calorine/tags) - [Commits](https://gitlab.com/materials-modeling/calorine/compare/3.3...3.4) --- updated-dependencies: - dependency-name: calorine dependency-version: '3.4' dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [wandb](https://github.com/wandb/wandb) from 0.27.2 to 0.28.0. - [Release notes](https://github.com/wandb/wandb/releases) - [Changelog](https://github.com/wandb/wandb/blob/main/CHANGELOG.md) - [Commits](wandb/wandb@v0.27.2...v0.28.0) --- updated-dependencies: - dependency-name: wandb dependency-version: 0.28.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ipython](https://github.com/ipython/ipython) from 9.14.1 to 9.15.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@9.14.1...9.15.0) --- updated-dependencies: - dependency-name: ipython dependency-version: 9.15.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Support batching for the elastic workflow * Update model construction due to API changes * Remove unsupported models * Remove legacy models from TorchSimModelType * Add tests for torchsim model wrappers * Revert mattersim changes * skip test if torchsim is not installed * Minimalistic elastic workflow for torchsim * Add tests * WIP: adapt common elastic jobs * Fix Optimizer being casted to its string value when passed to a jobflow.job * squeeze the stress tensor * Support TorchSim symmetry constraints * Convert the stress to kbar * Unit conversion without ASE * Batched phonon workflow * Remove ase and torchsim dependencies from common phonon jobs * Use lighter model * Fix tests * Disable torchsim in test-non-ase jobs * Fix phonon maker type check and improve readability * Include cell forces to the convergence check * Add values check on different phonon derived properties * Improve socket keyword documentation * Add elastic workflow tutorial * Loosen test tolerance --------- Co-authored-by: J. George <JaGeo@users.noreply.github.com>
--- updated-dependencies: - dependency-name: jupyterlab dependency-version: 4.6.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ject#1510) Updates the requirements on [setuptools](https://github.com/pypa/setuptools) to permit the latest version. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](pypa/setuptools@v42.0.0...v83.0.0) --- updated-dependencies: - dependency-name: setuptools dependency-version: 83.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [matgl](https://github.com/materialyzeai/matgl) from 4.0.2 to 4.0.3. - [Release notes](https://github.com/materialyzeai/matgl/releases) - [Changelog](https://github.com/materialyzeai/matgl/blob/main/docs/changes.md) - [Commits](materialyzeai/matgl@v4.0.2...v4.0.3) --- updated-dependencies: - dependency-name: matgl dependency-version: 4.0.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [calorine](https://gitlab.com/materials-modeling/calorine) from 3.4 to 3.5. - [Release notes](https://gitlab.com/materials-modeling/calorine/tags) - [Commits](https://gitlab.com/materials-modeling/calorine/compare/3.4...3.5) --- updated-dependencies: - dependency-name: calorine dependency-version: '3.5' dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [wandb](https://github.com/wandb/wandb) from 0.28.0 to 0.28.1. - [Release notes](https://github.com/wandb/wandb/releases) - [Changelog](https://github.com/wandb/wandb/blob/main/CHANGELOG.md) - [Commits](wandb/wandb@v0.28.0...v0.28.1) --- updated-dependencies: - dependency-name: wandb dependency-version: 0.28.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [nequip](https://github.com/mir-group/nequip) from 0.18.0 to 0.19.0. - [Release notes](https://github.com/mir-group/nequip/releases) - [Changelog](https://github.com/mir-group/nequip/blob/main/CHANGELOG.md) - [Commits](mir-group/nequip@v0.18.0...v0.19.0) --- updated-dependencies: - dependency-name: nequip dependency-version: 0.19.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [monty](https://github.com/materialyzeai/monty) from 2026.5.18 to 2026.7.16. - [Release notes](https://github.com/materialyzeai/monty/releases) - [Changelog](https://github.com/materialyzeai/monty/blob/main/docs/changelog.md) - [Commits](materialyzeai/monty@v2026.5.18...v2026.7.16) --- updated-dependencies: - dependency-name: monty dependency-version: 2026.7.16 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update README with note on atomate2 publishing Added a note about publishing new additions to atomate2. * Clarify journal publication process for atomate2 Updated the README to clarify publication process for new contributions to atomate2. * Add pymatgen-core dependency to pyproject.toml * Update pyproject.toml * fix openff * fix different pymatgen core version * upgrade to newer pymatgen-core version
* Bump jupyterlab from 4.6.1 to 4.6.3 Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 4.6.1 to 4.6.3. - [Release notes](https://github.com/jupyterlab/jupyterlab/releases) - [Changelog](https://github.com/jupyterlab/jupyterlab/blob/main/RELEASE.md) - [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/lsp@4.6.1...@jupyterlab/lsp@4.6.3) --- updated-dependencies: - dependency-name: jupyterlab dependency-version: 4.6.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * try to update openff utilities * only test openff on py 3.12 per utilities req --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Kaplan <aaronkaplan@microsoft.com>
…ject#1522) Updates the requirements on [setuptools](https://github.com/pypa/setuptools) to permit the latest version. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](pypa/setuptools@v42.0.0...v84.0.0) --- updated-dependencies: - dependency-name: setuptools dependency-version: 84.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ipython](https://github.com/ipython/ipython) from 9.15.0 to 9.16.1. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@9.15.0...9.16.1) --- updated-dependencies: - dependency-name: ipython dependency-version: 9.16.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [fireworks](https://github.com/materialsproject/fireworks) from 2.1.3 to 2.1.4. - [Release notes](https://github.com/materialsproject/fireworks/releases) - [Changelog](https://github.com/materialsproject/fireworks/blob/main/docs/changelog.html) - [Commits](https://github.com/materialsproject/fireworks/commits/v2.1.4) --- updated-dependencies: - dependency-name: fireworks dependency-version: 2.1.4 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [wandb](https://github.com/wandb/wandb) from 0.28.1 to 0.28.2. - [Release notes](https://github.com/wandb/wandb/releases) - [Changelog](https://github.com/wandb/wandb/blob/main/CHANGELOG.md) - [Commits](wandb/wandb@v0.28.1...v0.28.2) --- updated-dependencies: - dependency-name: wandb dependency-version: 0.28.2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pymatgen-core from 2026.5.18 to 2026.8.13 Bumps [pymatgen-core](https://github.com/materialsproject/pymatgen-core) from 2026.5.18 to 2026.8.13. - [Release notes](https://github.com/materialsproject/pymatgen-core/releases) - [Changelog](https://github.com/materialsproject/pymatgen-core/blob/main/CHANGES.md) - [Commits](materialsproject/pymatgen-core@v2026.5.18...v2026.8.13) --- updated-dependencies: - dependency-name: pymatgen-core dependency-version: 2026.8.13 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * remove enaug as this has now been removed from pymatgen-core sets at vasp recommendation * jdftx output to_dict (deprecated/removed in newer pmg-core) --> as_dict --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Kaplan <aaronkaplan@microsoft.com>
…t#1465) Updates the requirements on [pymongo](https://github.com/mongodb/mongo-python-driver) to permit the latest version. - [Release notes](https://github.com/mongodb/mongo-python-driver/releases) - [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst) - [Commits](mongodb/mongo-python-driver@0.4pre...4.17.0) --- updated-dependencies: - dependency-name: pymongo dependency-version: 4.17.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. George <JaGeo@users.noreply.github.com> Co-authored-by: Aaron Kaplan <aaronkaplan@microsoft.com>
Co-authored-by: utf <utf@users.noreply.github.com> Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com>
Bumps [openmm](https://github.com/openmm/openmm-org) from 8.5.2 to 8.6.0. - [Commits](https://github.com/openmm/openmm-org/commits) --- updated-dependencies: - dependency-name: openmm dependency-version: 8.6.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [deepmd-kit](https://github.com/deepmodeling/deepmd-kit) from 3.1.3 to 3.2.0. - [Release notes](https://github.com/deepmodeling/deepmd-kit/releases) - [Commits](deepmodeling/deepmd-kit@v3.1.3...v3.2.0) --- updated-dependencies: - dependency-name: deepmd-kit dependency-version: 3.2.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Kaplan <aaronkaplan@microsoft.com>
…or` (materialsproject#1530) * do not redefine structure, inherit from pymatgen's VaspInputSet * test sorting and pymatgen inheritence * remove unnecessary import * remove comment --------- Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com>
…project#1500) * Update phonopy requirement from <4,>=2.43.6 to >=2.43.6,<5 Updates the requirements on [phonopy](https://github.com/phonopy/phonopy) to permit the latest version. - [Changelog](https://github.com/phonopy/phonopy/blob/main/doc/changelog.md) - [Commits](phonopy/phonopy@v2.43.6...v4.2.1) --- updated-dependencies: - dependency-name: phonopy dependency-version: 4.2.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * restore default primitive to phonopy.load --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron Kaplan <aaronkaplan@microsoft.com> Co-authored-by: Aaron Kaplan <33381112+esoteric-ephemera@users.noreply.github.com>
Hi,
this is the PR for the latest implementation of dfpt wf in atomate2 wrt the materialsproject main branch.
We align everything to the discussion we had last week.
To run the dfpt workflow you will need the abipy version you can find in
https://github.com/emarazzi/abipy/tree/phonons_atomate2
there is a lot of differences in the tests part but I think we can discuss them when we will deal with the tests in a later stage
Future things to discuss: