Skip to content

Commit

Permalink
Replace everest site config manager with ert
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Nov 29, 2024
1 parent 1df489a commit f39a174
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 266 deletions.
29 changes: 0 additions & 29 deletions src/everest/plugins/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,6 @@ def visualize_data(api):
print("No visualization plugin installed!")


@hookimpl
def default_site_config_lines():
return [
"JOB_SCRIPT job_dispatch.py",
"QUEUE_OPTION LOCAL MAX_RUNNING 1",
"",
]


@hookimpl
def site_config_lines():
return None


@hookimpl
def ecl100_config_path():
return None


@hookimpl
def ecl300_config_path():
return None


@hookimpl
def flow_config_path():
return None


@hookimpl
def lint_forward_model():
return None
Expand Down
93 changes: 0 additions & 93 deletions src/everest/plugins/site_config_env.py

This file was deleted.

23 changes: 10 additions & 13 deletions tests/everest/test_egg_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from everest.config.export_config import ExportConfig
from everest.config_keys import ConfigKeys
from everest.export import MetaDataColumnNames, export_data
from everest.plugins.site_config_env import PluginSiteConfigEnv
from everest.simulator.everest_to_ert import _everest_to_ert_config_dict
from tests.everest.utils import (
everest_default_jobs,
Expand Down Expand Up @@ -680,12 +679,11 @@ def sweetcallbackofmine(self, *args, **kwargs):
self.called = True

cbtracker = CBTracker()
with PluginSiteConfigEnv():
run_model = EverestRunModel.create(
config, simulation_callback=cbtracker.sweetcallbackofmine
)
evaluator_server_config = EvaluatorServerConfig()
run_model.run_experiment(evaluator_server_config)
run_model = EverestRunModel.create(
config, simulation_callback=cbtracker.sweetcallbackofmine
)
evaluator_server_config = EvaluatorServerConfig()
run_model.run_experiment(evaluator_server_config)

assert cbtracker.called
# TODO: The comparison is currently disabled because we know it would
Expand Down Expand Up @@ -812,12 +810,11 @@ def sweetcallbackofmine(self, *args, **kwargs):
self.called = True

cbtracker = CBTracker()
with PluginSiteConfigEnv():
run_model = EverestRunModel.create(
config, simulation_callback=cbtracker.sweetcallbackofmine
)
evaluator_server_config = EvaluatorServerConfig()
run_model.run_experiment(evaluator_server_config)
run_model = EverestRunModel.create(
config, simulation_callback=cbtracker.sweetcallbackofmine
)
evaluator_server_config = EvaluatorServerConfig()
run_model.run_experiment(evaluator_server_config)

assert cbtracker.called

Expand Down
131 changes: 0 additions & 131 deletions tests/everest/test_site_config_env.py

This file was deleted.

0 comments on commit f39a174

Please sign in to comment.