-
Notifications
You must be signed in to change notification settings - Fork 43
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
transition to pydantic ConfigDict #958
Comments
I'm seeing another deprecation from api/mp_api/client/core/settings.py Line 24 in e6797ce
For code: import warnings
from mp_api.client import MPRester
warnings.filterwarnings("error", category=DeprecationWarning)
mpr = MPRester()
s = mpr.get_structure_by_material_id("mp-1143") I got:
|
Thanks @DanielYang59! I fixed the first issue in c176278. Looking into switching to |
DeprecationWarning: Accessing thermo data through MPRester.thermo is deprecated. Please use MPRester.materials.thermo instead.
Thanks a lot for the quick fix :) |
@tschaume I noticed another issue, Lines 22 to 32 in 87c072e
Also it might be advisable to declare an lower version bound for direct dependencies to avoid accidentally installing outdated versions (under certain resolution strategy), e.g. - "setuptools",
+ "setuptools >= lowest_working_version",
One last off-topic question, and I could be wrong as I don't really look into the code base of |
Getting the following warning:
For:
api/mp_api/client/mprester.py
Lines 726 to 730 in e6797ce
The text was updated successfully, but these errors were encountered: