Skip to content

Commit

Permalink
Rename jobs in SnapshotBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Dec 22, 2023
1 parent 6c5ff26 commit 28d8a2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ert/ensemble_evaluator/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 28d8a2a

Please sign in to comment.