Skip to content
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

Defer MPRester import to allow it to act more like an optional dep #906

Merged
merged 1 commit into from Jun 24, 2023

Conversation

ml-evs
Copy link
Collaborator

@ml-evs ml-evs commented Jun 24, 2023

There are some awkward version conflicts between pymatgen, mp_api and emmet, and as this package now tries to be agnostic to MPRester version, imports can error for some subset of versions. This PR defers the import of MPRester so that it only errors in cases where the user is trying to use it.

@ml-evs ml-evs merged commit f39992b into main Jun 24, 2023
4 checks passed
@janosh janosh deleted the ml-evs/deprecate_mp_rester branch June 27, 2023 17:06
ml-evs added a commit that referenced this pull request Jul 24, 2023
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.

None yet

1 participant