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
* Use ensemble evaluator in everest in place of BatchSimulator

* Fix test_simulator_cache Co-authored-by: Peter Verveer <[email protected]>
  • Loading branch information
DanSava authored Dec 2, 2024
1 parent 0d1430e commit b5a1805
Show file tree
Hide file tree
Showing 26 changed files with 565 additions and 2,069 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 b5a1805

Please sign in to comment.