Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Add property experiment_id on ensemble model #219

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ert_storage/database_schema/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ def parent_ensemble_id(self) -> PyUUID:
@property
def child_ensemble_ids(self) -> List[PyUUID]:
return [x.ensemble_result.id for x in self.children]

@property
def experiment_id(self) -> PyUUID:
return self.experiment.id