Skip to content

Commit

Permalink
Update changelog. Make warnings more obvious.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Jul 25, 2022
1 parent 276f895 commit d06e9c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change log
==========

v2022.7.24.1
------------
* Implementation changed to allow seamless use of MPRester regardless of whether new or old API key is used.


v2022.7.24
----------
* Initial implementation of MPRester2 with new API support. Basic functionality for now.
Expand Down
6 changes: 2 additions & 4 deletions pymatgen/ext/matproj.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,10 @@ def __init__(
Set to False to disable the user agent.
"""
warnings.warn(
"You are using the legacy MPRester, which is deprecated. If you are not a power user, ie., you"
"You are using the legacy MPRester, which is deprecated. If you are not a power user, ie., you "
"do not have a lot of legacy code that uses many different MPRester methods, it is recommended "
"you get a new API key from the new Materials Project front end. Once you use get your new API"
"you get a new API key from the new Materials Project front end. Once you use get your new API "
"key, using the new API key will automatically route you to using the new MPRester."
"to the legacy MPRester.",
DeprecationWarning,
)
if api_key is not None:
self.api_key = api_key
Expand Down

0 comments on commit d06e9c2

Please sign in to comment.