Skip to content

Commit

Permalink
Use ensemble evaluator in everest in place of BatchSimulator
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Nov 28, 2024
1 parent 8f8a329 commit d46bfd1
Show file tree
Hide file tree
Showing 22 changed files with 582 additions and 2,057 deletions.
4 changes: 0 additions & 4 deletions src/ert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@
)
from .data import MeasuredData
from .libres_facade import LibresFacade
from .simulator import BatchSimulator, BatchContext, JobStatus
from .workflow_runner import WorkflowRunner
from .plugins import plugin
from .scheduler import JobState

__all__ = [
"BatchContext",
"BatchSimulator",
"ErtScript",
"ForwardModelStepDocumentation",
"ForwardModelStepJSON",
"ForwardModelStepPlugin",
"ForwardModelStepValidationError",
"ForwardModelStepWarning",
"JobState",
"JobStatus",
"LibresFacade",
"MeasuredData",
"WorkflowRunner",
Expand Down
6 changes: 6 additions & 0 deletions src/ert/run_models/base_run_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ def _get_number_of_finished_realizations_from_reruns(self) -> int:
False
) - self._initial_realizations_mask.count(False)

def get_current_snapshot(self) -> EnsembleSnapshot:
if self._iter_snapshot.keys():
current_iter = max(list(self._iter_snapshot.keys()))
return self._iter_snapshot[current_iter]
return EnsembleSnapshot()

def get_memory_consumption(self) -> int:
max_memory_consumption: int = 0
if self._iter_snapshot.keys():
Expand Down
Loading

0 comments on commit d46bfd1

Please sign in to comment.