From 411216db9296fb5d57609c85da0cfa61bdce170d Mon Sep 17 00:00:00 2001 From: "spaceBearAmadeus (Alex)" Date: Tue, 22 Oct 2024 14:26:59 -0400 Subject: [PATCH] update api for rmse name --- compose_api/data_model.py | 2 +- compose_api/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose_api/data_model.py b/compose_api/data_model.py index 0eae70cc9..0a1b81a0c 100644 --- a/compose_api/data_model.py +++ b/compose_api/data_model.py @@ -76,7 +76,7 @@ class ObservableData(BaseModel): class SimulatorRMSE(BaseModel): simulator: str - rmse_matrix: Dict[str, float] + rmse_scores: Dict[str, float] class Output(BaseModel): diff --git a/compose_api/main.py b/compose_api/main.py index 676f1ac48..f659e6b56 100644 --- a/compose_api/main.py +++ b/compose_api/main.py @@ -895,7 +895,7 @@ async def get_verification_output(job_id: str) -> VerificationOutput: data.append(obs) else: for simulator_name, data_table in obs_data.items(): - obs = SimulatorRMSE(simulator=simulator_name, rmse_matrix=data_table) + obs = SimulatorRMSE(simulator=simulator_name, rmse_scores=data_table) data.append(obs) output = VerificationOutput(