File tree Expand file tree Collapse file tree
mp_api/client/routes/materials Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from emmet .core .synthesis import (
44 OperationTypeEnum ,
5- SynthesisRecipe ,
5+ SynthesisSearchResultModel ,
66 SynthesisTypeEnum ,
77)
88
1111
1212class 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
You can’t perform that action at this time.
0 commit comments