Skip to content

Commit

Permalink
Fix simulation context while fix the correct imports RealizationState…
Browse files Browse the repository at this point in the history
… and RealizationStorageState
  • Loading branch information
xjules committed Nov 23, 2023
1 parent fb95b09 commit 4ea0014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ert/simulator/batch_simulator_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import numpy as np

from ert.realization_state import RealizationState
from ert.job_queue import RealizationState

from .simulation_context import SimulationContext

Expand Down
6 changes: 3 additions & 3 deletions src/ert/simulator/simulation_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from ert.config import HookRuntime
from ert.enkf_main import create_run_path
from ert.job_queue import JobQueue, JobStatus
from ert.job_queue import JobQueue, RealizationState
from ert.run_context import RunContext
from ert.runpaths import Runpaths
from ert.storage.realization_storage_state import RealizationStorageState
Expand Down Expand Up @@ -68,12 +68,12 @@ def _run_forward_model(
):
queue_evaluators = [
partial(
job_queue.stop_long_running_jobs,
job_queue.stop_long_running_realizations,
ert.ert_config.analysis_config.minimum_required_realizations,
)
]

asyncio.run(job_queue.execute(evaluators=queue_evaluators))
asyncio.run(job_queue.execute(evaluators=queue_evaluators)) # type: ignore

run_context.sim_fs.sync()

Expand Down

0 comments on commit 4ea0014

Please sign in to comment.