Skip to content

Commit

Permalink
EverestRunModel: remove unnecessary slug function
Browse files Browse the repository at this point in the history
  • Loading branch information
verveerpj committed Dec 18, 2024
1 parent 39adad7 commit 9477e52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ert/run_models/everest_run_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,8 @@ def _get_run_args(
metadata: EvaluatorContext,
case_data: dict[int, Any],
) -> list[RunArg]:
def _slug(entity: str) -> str:
entity = " ".join(str(entity).split())
return "".join([x if x.isalnum() else "_" for x in entity.strip()])

substitutions = self.ert_config.substitutions
substitutions["<CASE_NAME>"] = _slug(ensemble.name)
substitutions["<CASE_NAME>"] = ensemble.name
self.active_realizations = [True] * len(case_data)
assert metadata.config.realizations.names is not None
for sim_id, control_idx in enumerate(case_data.keys()):
Expand Down

0 comments on commit 9477e52

Please sign in to comment.