Skip to content

Commit

Permalink
More typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Feb 18, 2024
1 parent e94b4d2 commit 1ae3b27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mp_api/client/mprester.py
Expand Up @@ -131,7 +131,7 @@ def __init__(
headers: dict | None = None,
mute_progress_bars: bool = _MAPI_SETTINGS.MUTE_PROGRESS_BARS,
):
"""Initalise the MPRester.
"""Initialize the MPRester.
Arguments:
api_key (str): A String API key for accessing the MaterialsProject
Expand Down Expand Up @@ -945,9 +945,7 @@ def get_ion_reference_data(self) -> list[dict]:
query={"project": "ion_ref_data"},
fields=["identifier", "formula", "data"],
paginate=True,
).get(
"data"
) # type: ignore
).get("data") # type: ignore

def get_ion_reference_data_for_chemsys(self, chemsys: str | list) -> list[dict]:
"""Download aqueous ion reference data used in the construction of Pourbaix diagrams.
Expand Down Expand Up @@ -1226,8 +1224,10 @@ def get_bandstructure_by_material_id(
Returns:
bandstructure (Union[BandStructure, BandStructureSymmLine]): BandStructure or BandStructureSymmLine object
"""
return self.electronic_structure_bandstructure.get_bandstructure_from_material_id( # type: ignore
material_id=material_id, path_type=path_type, line_mode=line_mode
return (
self.electronic_structure_bandstructure.get_bandstructure_from_material_id( # type: ignore
material_id=material_id, path_type=path_type, line_mode=line_mode
)
)

def get_dos_by_material_id(self, material_id: str):
Expand Down

0 comments on commit 1ae3b27

Please sign in to comment.