Skip to content

Commit

Permalink
Remove deprecated arg from robocrys search (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm authored Mar 15, 2024
1 parent 4d8dba0 commit 971d1ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mp_api/client/routes/materials/robocrys.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def search(
def search_docs(
self,
material_ids: str | list[str] | None = None,
deprecated: bool | None = False,
num_chunks: int | None = None,
chunk_size: int = 1000,
all_fields: bool = True,
Expand All @@ -56,7 +55,6 @@ def search_docs(
Arguments:
material_ids (str, List[str]): A single Material ID string or list of strings
(e.g., mp-149, [mp-149, mp-13]).
deprecated (bool): Whether the material is tagged as deprecated.
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
chunk_size (int): Number of data entries per chunk.
all_fields (bool): Whether to return all fields in the document. Defaults to True.
Expand All @@ -66,7 +64,7 @@ def search_docs(
Returns:
([RobocrystallogapherDoc], [dict]) List of robocrystallographer documents or dictionaries.
"""
query_params = {"deprecated": deprecated} # type: dict
query_params = {} # type: dict

if material_ids:
if isinstance(material_ids, str):
Expand Down

0 comments on commit 971d1ec

Please sign in to comment.