Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CASE_NAME to BATCH_NAME #9593

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading