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 26, 2024
1 parent ca1806e commit 1def7b7
Show file tree
Hide file tree
Showing 21 changed files with 618 additions and 1,828 deletions.
4 changes: 1 addition & 3 deletions src/ert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
)
from .data import MeasuredData
from .libres_facade import LibresFacade
from .simulator import BatchSimulator, BatchContext, JobStatus
from .simulator import JobStatus
from .workflow_runner import WorkflowRunner
from .plugins import plugin
from .scheduler import JobState

__all__ = [
"BatchContext",
"BatchSimulator",
"ErtScript",
"ForwardModelStepDocumentation",
"ForwardModelStepJSON",
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) -> Optional[EnsembleSnapshot]:
if self._iter_snapshot.keys():
current_iter = max(list(self._iter_snapshot.keys()))
return self._iter_snapshot[current_iter]
return None

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

0 comments on commit 1def7b7

Please sign in to comment.