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:
@ -23,7 +23,7 @@ from bridge.dto import (
|
||||
BuildResult,
|
||||
EnviPyDTO,
|
||||
EvaluationResult,
|
||||
PredictedProperty,
|
||||
PropertyPrediction,
|
||||
RunResult,
|
||||
) # noqa: I001
|
||||
|
||||
@ -33,7 +33,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@register("pepperprediction")
|
||||
class PepperPrediction(PredictedProperty):
|
||||
class PepperPrediction(PropertyPrediction):
|
||||
mean: float | None
|
||||
std: float | None
|
||||
log_mean: float | None
|
||||
@ -159,19 +159,24 @@ class PepperPrediction(PredictedProperty):
|
||||
|
||||
|
||||
class PEPPER(Property):
|
||||
def identifier(self) -> str:
|
||||
@classmethod
|
||||
def identifier(cls) -> str:
|
||||
return "pepper"
|
||||
|
||||
def display(self) -> str:
|
||||
@classmethod
|
||||
def display(cls) -> str:
|
||||
return "PEPPER"
|
||||
|
||||
def name(self) -> str:
|
||||
@classmethod
|
||||
def name(cls) -> str:
|
||||
return "Predict Environmental Pollutant PERsistence"
|
||||
|
||||
def requires_rule_packages(self) -> bool:
|
||||
@classmethod
|
||||
def requires_rule_packages(cls) -> bool:
|
||||
return False
|
||||
|
||||
def requires_data_packages(self) -> bool:
|
||||
@classmethod
|
||||
def requires_data_packages(cls) -> bool:
|
||||
return True
|
||||
|
||||
def get_type(self) -> PropertyType:
|
||||
|
||||
Reference in New Issue
Block a user