forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
74 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from uuid import UUID | ||
from typing import Union, List | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
from ert.config import ErtConfig | ||
from ert.gui.simulation.ensemble_experiment_panel import ( | ||
Arguments as EnsembleExperimentArguments, | ||
) | ||
from ert.gui.simulation.ensemble_smoother_panel import ( | ||
Arguments as EnsembleSmootherArguments, | ||
) | ||
from ert.gui.simulation.evaluate_ensemble_panel import ( | ||
Arguments as EvaluateEnsembleArguments, | ||
) | ||
from ert.gui.simulation.iterated_ensemble_smoother_panel import ( | ||
Arguments as IteratedEnsembleSmootherArguments, | ||
) | ||
from ert.gui.simulation.manual_update_panel import Arguments as ManualUpdateArguments | ||
from ert.gui.simulation.multiple_data_assimilation_panel import ( | ||
Arguments as MultipleDataAssimilationArguments, | ||
) | ||
from ert.gui.simulation.single_test_run_panel import Arguments as SingleTestRunArguments | ||
|
||
class Experiment(BaseModel): | ||
args: Union[ | ||
EnsembleExperimentArguments, | ||
EnsembleSmootherArguments, | ||
EvaluateEnsembleArguments, | ||
IteratedEnsembleSmootherArguments, | ||
ManualUpdateArguments, | ||
MultipleDataAssimilationArguments, | ||
SingleTestRunArguments, | ||
] = Field(..., discriminator="mode") | ||
ert_config: ErtConfig | ||
|
||
class ExperimentOut(BaseModel): | ||
id: UUID | ||
type: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters