From 28d8a2aac665c63b31222b8c46779c9be58e2bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Thu, 21 Dec 2023 15:20:27 +0100 Subject: [PATCH] Rename jobs in SnapshotBuilder --- src/ert/ensemble_evaluator/snapshot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ert/ensemble_evaluator/snapshot.py b/src/ert/ensemble_evaluator/snapshot.py index 5289b26fc69..0379d3a3e89 100644 --- a/src/ert/ensemble_evaluator/snapshot.py +++ b/src/ert/ensemble_evaluator/snapshot.py @@ -410,7 +410,7 @@ class SnapshotDict(BaseModel): class SnapshotBuilder(BaseModel): - jobs: Dict[str, ForwardModel] = {} + forward_models: Dict[str, ForwardModel] = {} metadata: Dict[str, Any] = {} def build( @@ -424,7 +424,7 @@ def build( for r_id in real_ids: top.reals[r_id] = RealizationSnapshot( active=True, - forward_models=self.jobs, + forward_models=self.forward_models, start_time=start_time, end_time=end_time, status=status, @@ -444,7 +444,7 @@ def add_forward_model( stdout: Optional[str] = None, stderr: Optional[str] = None, ) -> "SnapshotBuilder": - self.jobs[forward_model_id] = ForwardModel( + self.forward_models[forward_model_id] = ForwardModel( status=status, index=index, start_time=start_time,