Skip to content

Commit f898181

Browse files
undo synth doc changes
1 parent 06e24ab commit f898181

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mp_api/client/routes/materials/synthesis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from emmet.core.synthesis import (
44
OperationTypeEnum,
5-
SynthesisRecipe,
5+
SynthesisSearchResultModel,
66
SynthesisTypeEnum,
77
)
88

@@ -11,7 +11,7 @@
1111

1212
class SynthesisRester(BaseRester):
1313
suffix = "materials/synthesis"
14-
document_model = SynthesisRecipe # type: ignore
14+
document_model = SynthesisSearchResultModel # type: ignore
1515

1616
def search(
1717
self,
@@ -29,7 +29,7 @@ def search(
2929
condition_mixing_media: list[str] | None = None,
3030
num_chunks: int | None = None,
3131
chunk_size: int | None = 10,
32-
) -> list[SynthesisRecipe] | list[dict]:
32+
) -> list[SynthesisSearchResultModel] | list[dict]:
3333
"""Search synthesis recipe text.
3434
3535
Arguments:
@@ -50,7 +50,7 @@ def search(
5050
5151
5252
Returns:
53-
([SynthesisRecipe], [dict]): List of synthesis documents or dictionaries.
53+
([SynthesisSearchResultModel], [dict]): List of synthesis documents or dictionaries.
5454
"""
5555
# Turn None and empty list into None
5656
keywords = keywords or None

0 commit comments

Comments
 (0)