Skip to content

Fix consideration of translation symmetry for some (extremely rare) edge cases in LobsterEnv#4148

Merged
shyuep merged 76 commits intomaterialsproject:masterfrom
JaGeo:fix_icohp
Mar 10, 2026
Merged

Fix consideration of translation symmetry for some (extremely rare) edge cases in LobsterEnv#4148
shyuep merged 76 commits intomaterialsproject:masterfrom
JaGeo:fix_icohp

Conversation

@JaGeo
Copy link
Member

@JaGeo JaGeo commented Oct 30, 2024

Summary

  • completely solve the translation question (i.e., figuring out the direction and origin)
  • add a test case where this plays a role

@JaGeo JaGeo requested review from mkhorton and shyuep as code owners October 30, 2024 08:00
@JaGeo JaGeo marked this pull request as draft October 30, 2024 08:00
Comment on lines +997 to +1004
or (
copied_translations_from_ICOHPs[dist_idx][0]
== translations_by_distance[neigh_idx][0]
and copied_translations_from_ICOHPs[dist_idx][1]
== translations_by_distance[neigh_idx][1]
and copied_translations_from_ICOHPs[dist_idx][2]
== translations_by_distance[neigh_idx][2]
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could raise a warning if this fall-back option is taken. I think with updating to reading the CONTCAR, most issues should be fixed, however.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@naik-aakash
Copy link
Contributor

naik-aakash commented Feb 25, 2026

Hi @shyuep and @JaGeo , based on the issue pointed here #4595 (comment)

I moved the lobsterenv.py module to the analysis module in this PR and added a deprecation warning for older class imports pointing to the new location. Maybe this helps with moving lobster.io modules to pymatgen-core, since other Lobster parsers do not depend on local_env or chemenv, I think. Correct me in case I overlooked anything

naik-aakash and others added 2 commits February 25, 2026 16:45
Signed-off-by: Aakash Ashok Naik <91958822+naik-aakash@users.noreply.github.com>
@naik-aakash
Copy link
Contributor

Hi @shyuep, thanks for already moving the lobster/io modules to pymatgen-core. Currently, I notice only the cohp module in electronic_structure is still in main pymatgen. Is there any dependency issue preventing the move of this module?

And I can't figure out why the tests in this PR aren't using the changes I made in this module and are failing with an attribute error; it seems they are not using the modified cohp module as expected. Not sure if it has something to do with the split of the electronic_structure module itself or in the CI workflow.

After resolving this and once the test-files PR is merged, hopefully lobster-related modules can be fully functional.

@JaGeo
Copy link
Member Author

JaGeo commented Mar 4, 2026

Just to add this: we are aware that the split between pymatgen-core and pymatgen is currently under discussion. However, we wanted to leave the comment for potential future resolution of the issue.

@naik-aakash naik-aakash force-pushed the fix_icohp branch 3 times, most recently from 893393c to c48a2eb Compare March 9, 2026 20:08
@naik-aakash
Copy link
Contributor

Hi @shyuep, I have made the necessary changes here. 😃

@shyuep shyuep merged commit c58dfe4 into materialsproject:master Mar 10, 2026
5 of 6 checks passed
@shyuep
Copy link
Member

shyuep commented Mar 10, 2026

Great thanks!

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.

5 participants