Skip to content

Commit

Permalink
Merge pull request #1365 from materialsproject/change-default-endpoint
Browse files Browse the repository at this point in the history
Change default MPRester endpoint at request of @dwinston
  • Loading branch information
mkhorton committed Dec 20, 2018
2 parents 3c49b64 + 6fc00ce commit 15bacce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymatgen/ext/matproj.py
Expand Up @@ -75,7 +75,7 @@ class MPRester:
their setups and MPRester can then be called without any arguments.
endpoint (str): Url of endpoint to access the MaterialsProject REST
interface. Defaults to the standard Materials Project REST
address at "https://www.materialsproject.org/rest/v2", but
address at "https://materialsproject.org/rest/v2", but
can be changed to other urls implementing a similar interface.
"""

Expand Down Expand Up @@ -106,7 +106,7 @@ def __init__(self, api_key=None, endpoint=None):
self.preamble = endpoint
else:
self.preamble = SETTINGS.get("PMG_MAPI_ENDPOINT",
"https://www.materialsproject.org/rest/v2")
"https://materialsproject.org/rest/v2")
import requests
if sys.version_info[0] < 3:
try:
Expand Down

0 comments on commit 15bacce

Please sign in to comment.