Implementation to adjust get_supercell_size to also generate orthorhombic supercells#923
Conversation
|
I don't exactly understand how I caused the |
pyproject.toml
Outdated
| "pydantic==2.8.2", | ||
| "pymatgen-analysis-defects==2024.7.19", | ||
| "pymatgen==2024.6.10", | ||
| "pymatgen@git+https://github.com/materialsproject/pymatgen.git@8e392947348c75220cfb79309fe8fc9745edc580", # has to be adjusted with new pymatgen release |
There was a problem hiding this comment.
I have fixed the pymatgen version to the merge that contains the changes in CubicSupercellTransformation in pymatgen.
There was a problem hiding this comment.
Thanks @QuantumChemist but we can't merge until a new pymatgen version has been released and this has been updated.
There was a problem hiding this comment.
Hi @utf , Ok when the new pymatgen release is out, I will also adjust it here :)
|
The failing AIMS unit tests have been addressed here #928 |
|
Hey @utf ! 😃 in principle this PR is ready to be reviewed and merged. The failing tests all stem from AIMS: Thank you a lot! |
|
Hey @utf , I updated the pymatgen version as they released a new version. The failing unit tests still stem from aims. Thank you 😃 |
|
I also saw that the pymatgen version gets updated anyway :) #953 |
|
Hey @utf , I just wanted to ask you if my PR is now ok to be merged? Thank you 😃 |
src/atomate2/common/jobs/phonons.py
Outdated
| transformation = CubicSupercellTransformation( | ||
| **common_kwds, max_atoms=kwargs.get("max_atoms"), force_90_degrees=False | ||
| **common_kwds, | ||
| max_atoms=kwargs.get("max_atoms"), |
There was a problem hiding this comment.
why is this not part of theother dict?
There was a problem hiding this comment.
It was like this in the original implementation, so I left it like that.
There was a problem hiding this comment.
If you would like me to, I could move it to common_kwds as I don't think it will cause any backwards incompatibility issues and I would find it more systematic to have all kwargs in common_kwds.
There was a problem hiding this comment.
I forgot to push those changes, I notice now, but it doesn't affect the functionalities.
There was a problem hiding this comment.
I finally thought of pushing this change 😅
|
@QuantumChemist Thanks! I am happy to merge if the tests pass 😀 |
|
As @janosh said, |
oh, I see. The issue came up because I tried |
installing with conda somehow messed up my conda env. I will simply exclude thes openff tests. Thank you 😃 |
ah and I forgot to post the whole error message: so this happens when running all unit tests at once. |
|
it's probably best to pass the file/directory path to only the tests you currently care about to a bunch of the FF tests also fail unless you have all the FF packages installed. so the test suite is not currently designed to be out-of-the-box runnable by contributors who only care about part of the code and don't have all optional deps installed |
|
@janosh is the issue with the defects part also still existing? I usually had to install the defects add-on for the tests. |
|
i'm not sure, haven't run the complete test suite locally in forever 😅 |
I usually do but I also run an extra pytest test/* because, I don't know in what submodules the code I changed is called. As you said, I will then let that be handled by the CI :) |
|
@utf could you please resolve the merge conflicts? I can't do it, it seems. The relevant unit tests are passing locally for me. |
|
@QuantumChemist to resolve the merge conflict you can:
That should do it! |
Right, I'm so used to do this on the GitHub website that I didn't think of this possibility! Thank you 😄 |
|
Regarding the failing unit tests: For the failing aims and lobster tests I have no idea 😅 |
|
I don't understand what is going on with the unit tests... I will try with a fresh MP/atomate2/main branch and open another PR. |
|
@QuantumChemist there are a few problems currently. @janosh was working on some of them already. |
ah, I see. I was just wondering why the unit tests don't fail for the MP repo or other PRs. I thought I caused it. Then I will just wait :) Thank you! |
|
|
Ok, great! :D Thank you a lot! |
|
Thank you for merging this! :) |
…mbic supercells (materialsproject#923) * starting with implementation to adjust get_supercell_size * adding orthorhombic supercells * add unit test * fixed the reason for the failing unit tests * adjust pymatgen version * adjust pymatgen version * fix linting * fix missing max_length in unit test * adjusted pymatgen version * add step_size to common_kwds * put max_atoms to common_kwds * adjustments to make unit tests pass * fixing ase unit test * Update test_jobs.py --------- Co-authored-by: J. George <[email protected]>
Summary
I'm adjusting
get_supercell_sizeto also generate orthorhombic supercells.This implementation is depending on materialsproject/pymatgen#3938