Skip to content

Commit

Permalink
Change CASE_NAME to BATCH_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanDeHoop committed Dec 19, 2024
1 parent 2b41fe2 commit 146b432
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ert/run_models/everest_run_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def _slug(entity: str) -> str:

substitutions = self.ert_config.substitutions
# fill in the missing geo_id data
substitutions["<CASE_NAME>"] = _slug(ensemble.name)
substitutions["<BATCH_NAME>"] = _slug(ensemble.name)
self.active_realizations = [True] * len(case_data)
for sim_id, (geo_id, _) in enumerate(case_data):
if self.active_realizations[sim_id]:
Expand Down
2 changes: 1 addition & 1 deletion src/everest/simulator/everest_to_ert.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _extract_summary_keys(ever_config: EverestConfig, ert_config):

def _extract_environment(ever_config: EverestConfig, ert_config):
simulation_fmt = os.path.join(
"<CASE_NAME>", "geo_realization_<GEO_ID>", SIMULATION_DIR
"<BATCH_NAME>", "geo_realization_<GEO_ID>", SIMULATION_DIR
)

assert ever_config.simulation_dir is not None
Expand Down
2 changes: 1 addition & 1 deletion tests/everest/test_egg_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def _generate_exp_ert_config(config_path, output_dir):
ErtConfigKeys.NUM_REALIZATIONS: NUM_REALIZATIONS,
ErtConfigKeys.RUNPATH: os.path.join(
output_dir,
"egg_simulations/<CASE_NAME>/geo_realization_<GEO_ID>/simulation_<IENS>",
"egg_simulations/<BATCH_NAME>/geo_realization_<GEO_ID>/simulation_<IENS>",
),
ErtConfigKeys.RUNPATH_FILE: os.path.join(
os.path.realpath("everest/model"),
Expand Down

0 comments on commit 146b432

Please sign in to comment.