-
Notifications
You must be signed in to change notification settings - Fork 110
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
1 parent
3f3e682
commit 3ce383f
Showing
54 changed files
with
660 additions
and
421 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
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Any, Dict | ||
from typing import TYPE_CHECKING, Any, Type | ||
|
||
from qtpy.QtCore import Signal | ||
from qtpy.QtWidgets import QWidget | ||
|
||
if TYPE_CHECKING: | ||
from ert.run_models import BaseRunModel | ||
|
||
|
||
class ExperimentConfigPanel(QWidget): | ||
simulationConfigurationChanged = Signal() | ||
|
||
def __init__(self, simulation_model): | ||
def __init__(self, simulation_model: Type[BaseRunModel]): | ||
QWidget.__init__(self) | ||
self.setContentsMargins(10, 10, 10, 10) | ||
self.__simulation_model = simulation_model | ||
|
||
def get_experiment_type(self): | ||
def get_experiment_type(self) -> Type[BaseRunModel]: | ||
return self.__simulation_model | ||
|
||
@staticmethod | ||
def isConfigurationValid() -> bool: | ||
def isConfigurationValid(self) -> bool: | ||
return True | ||
|
||
@staticmethod | ||
def get_experiment_arguments() -> Dict[str, Any]: | ||
def get_experiment_arguments(self) -> Any: | ||
return {} |
Oops, something went wrong.