forked from enviPath/enviPy
[Feature] Biotransformer in enviPath (#364)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#364
This commit is contained in:
@ -59,10 +59,19 @@ class EnviPyDTO(Protocol):
|
||||
) -> List["ProductSet"]: ...
|
||||
|
||||
|
||||
class PredictedProperty(EnviPyModel):
|
||||
class EnviPyPrediction(EnviPyModel):
|
||||
pass
|
||||
|
||||
|
||||
class PropertyPrediction(EnviPyPrediction):
|
||||
pass
|
||||
|
||||
|
||||
class TransformationProductPrediction(EnviPyPrediction):
|
||||
substrate: str
|
||||
products: dict[str, float]
|
||||
|
||||
|
||||
@register("buildresult")
|
||||
class BuildResult(EnviPyModel):
|
||||
data: dict[str, Any] | List[dict[str, Any]] | None
|
||||
@ -72,7 +81,7 @@ class BuildResult(EnviPyModel):
|
||||
class RunResult(EnviPyModel):
|
||||
producer: HttpUrl
|
||||
description: Optional[str] = None
|
||||
result: PredictedProperty | List[PredictedProperty]
|
||||
result: EnviPyPrediction | List[EnviPyPrediction]
|
||||
|
||||
|
||||
@register("evaluationresult")
|
||||
|
||||
Reference in New Issue
Block a user