diff --git a/src/physrisk/api/v1/impact_req_resp.py b/src/physrisk/api/v1/impact_req_resp.py index 6840fa21..592444ab 100644 --- a/src/physrisk/api/v1/impact_req_resp.py +++ b/src/physrisk/api/v1/impact_req_resp.py @@ -35,43 +35,8 @@ class Category(int, Enum): REDFLAG = 4 -class RiskKey(BaseModel): - scenario_id: str - year: str - - -class RiskMeasureKey(RiskKey): - risk_measure_id: str = Field("", description="Identifier of the risk measure.") - - -class AssetsRiskScores(BaseModel): - """Risk scores for a set of assets, with risk measures used to calculate the measures. - A single score may be derived from multiple risk measures in principle, the measures are identified - by the ScoreBasedMeasureDefinition corresponding to the asset. - In principle multiple measures may be used to compute the score, hence 'measures_0', 'measures_1' etc, - although no example yet. - """ - - key: RiskKey - scores: List[int] = Field(None, description="Identifier for the risk measure.") - measures_0: List[float] - measures_1: Optional[List[float]] - - -class AssetRiskMeasures(BaseModel): - """Risk measures for a set of assets.""" - - key: RiskMeasureKey - measures: List[float] - - -class AssetScoreModel(BaseModel): - asset_model_id: List[str] - - class RiskMeasureDefinition(BaseModel): measure_id: str = Field(None, description="Identifier for the risk measure.") - measure_index: int = Field(None, description="Identifier for the risk measure.") label: str = Field( "