-
Notifications
You must be signed in to change notification settings - Fork 874
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
Extend CubicSupercell
transformation to also be able to look for orthorhombic cells
#3938
Extend CubicSupercell
transformation to also be able to look for orthorhombic cells
#3938
Conversation
Signed-off-by: J. George <JaGeo@users.noreply.github.com>
Orthorhombic supercell
…to orthorhombic_supercell
Orthorhombic supercell
The failing linting does not stem from our changes. |
Once the other tests pass, this is ready for review |
There are many mysteries in the world of linters, including why they jump up on untouched parts of the code out of the blue 🤣 . I tried to push a PR to your branch but for some reason your branch wouldn't show up? src/pymatgen/analysis/local_env.py:3051:32: - if (m != j) and (m != k) and (not flag_xaxis):
+ if m not in {j, k} and (not flag_xaxis): src/pymatgen/io/aims/parsers.py:333:12: - if (line_start == LINE_NOT_FOUND) or (line_end == LINE_NOT_FOUND) or (line_end - line_start != n_kpts):
+ if LINE_NOT_FOUND in {line_start, line_end} or (line_end - line_start != n_kpts): src/pymatgen/io/vasp/outputs.py:1707:25: - if (
- tag == "eigenvalues_kpoints_opt"
- or tag == "projected_kpoints_opt"
- or (tag == "dos" and elem.attrib.get("comment") == "kpoints_opt")
- ):
+ if tag in {"eigenvalues_kpoints_opt", "projected_kpoints_opt"} or (
+ tag == "dos" and elem.attrib.get("comment") == "kpoints_opt"
+ ): |
@DanielYang59 can you try again? You should now be allowed to do this |
Beautiful! Thanks for granting the access. Actually I was not looking for writing access to your fork, but to open a PR where your fork is the base repo, but I cannot find yours as the target repo for some reason. |
@DanielYang59 i am very confused. You mean this branch https://github.com/JaGeo/pymatgen/tree/orthorhombic_supercell ? |
@DanielYang59 thank you 😀. I hope someone will then merge our backward compatible code soon! |
No problem! |
I had the same problem yesterday btw. I worked around it by starting the PR in the JaGeo repo. But good everything worked in the end. |
Merged. Sometimes lint errors come up on other parts due to update of the linting software versions. |
Thank you @shyuep |
CubicSupercell
transformation to also be able to look for orthorhombic cells
Summary
Added code to also allow to search for orthorhombic supercells. Here, I also introduce the option to check for a
maximum_length
of the cells@QuantumChemist will now take over and write the tests for this class and fix the linting etc. :)