Skip to content

Add try/except import on LobsterSet module from pymatgen#1437

Merged
JaGeo merged 2 commits intomaterialsproject:mainfrom
tomdemeyere:lobster_import
Mar 26, 2026
Merged

Add try/except import on LobsterSet module from pymatgen#1437
JaGeo merged 2 commits intomaterialsproject:mainfrom
tomdemeyere:lobster_import

Conversation

@tomdemeyere
Copy link
Copy Markdown
Contributor

Due to the recent pymatgen changes the LobsterSet class have been displaced without deprecation, for now a try/except approach seems like the best (but ugly) compromise. Fix #1436

@JaGeo
Copy link
Copy Markdown
Member

JaGeo commented Mar 25, 2026

@tomdemeyere there is a second change that we need to account for. The LobsterNeighbor class is at a different place as well. You could use try and except as well.

@JaGeo
Copy link
Copy Markdown
Member

JaGeo commented Mar 26, 2026

I should read more carefully. The bug shows up in LobsterPy.

I have started to fix it but the changes in pymatgen had just a few side effects.... JaGeo/LobsterPy#433

I will probably need another hour.

@JaGeo JaGeo merged commit 9e6ee54 into materialsproject:main Mar 26, 2026
32 of 34 checks passed
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.

BUG: atomate2 0.0.23 ImportError 'LobsterSet' from 'pymatgen.io.vasp.sets'

2 participants