-
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
Implementation to adjust get_supercell_size to also generate orthorhombic supercells #923
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
@@ -101,7 +101,7 @@ strict = [ | |||
"pydantic-settings==2.3.4", | |||
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed the pymatgen version to the merge that contains the changes in CubicSupercellTransformation
in pymatgen.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
||
if not prefer_90_degrees: | ||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this not part of theother dict?
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.
It was like this in the original implementation, so I left it like that.
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.
Okay, fine
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
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.
I forgot to push those changes, I notice now, but it doesn't affect the functionalities.
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.
I finally thought of pushing this change 😅
…/atomate2 into adjust_get_supercell_size
@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_size
to also generate orthorhombic supercells.This implementation is depending on materialsproject/pymatgen#3938