Skip to content

Commit 971d1ec

Browse files
author
Jason Munro
authored
Remove deprecated arg from robocrys search (#899)
1 parent 4d8dba0 commit 971d1ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mp_api/client/routes/materials/robocrys.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def search(
4545
def search_docs(
4646
self,
4747
material_ids: str | list[str] | None = None,
48-
deprecated: bool | None = False,
4948
num_chunks: int | None = None,
5049
chunk_size: int = 1000,
5150
all_fields: bool = True,
@@ -56,7 +55,6 @@ def search_docs(
5655
Arguments:
5756
material_ids (str, List[str]): A single Material ID string or list of strings
5857
(e.g., mp-149, [mp-149, mp-13]).
59-
deprecated (bool): Whether the material is tagged as deprecated.
6058
num_chunks (int): Maximum number of chunks of data to yield. None will yield all possible.
6159
chunk_size (int): Number of data entries per chunk.
6260
all_fields (bool): Whether to return all fields in the document. Defaults to True.
@@ -66,7 +64,7 @@ def search_docs(
6664
Returns:
6765
([RobocrystallogapherDoc], [dict]) List of robocrystallographer documents or dictionaries.
6866
"""
69-
query_params = {"deprecated": deprecated} # type: dict
67+
query_params = {} # type: dict
7068

7169
if material_ids:
7270
if isinstance(material_ids, str):

0 commit comments

Comments
 (0)