From 9477e527191408ba84277834d93afcc98762c13f Mon Sep 17 00:00:00 2001 From: Peter Verveer Date: Wed, 18 Dec 2024 18:03:47 +0000 Subject: [PATCH] EverestRunModel: remove unnecessary slug function --- src/ert/run_models/everest_run_model.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ert/run_models/everest_run_model.py b/src/ert/run_models/everest_run_model.py index d5a1cc96fb0..98f9944bdfd 100644 --- a/src/ert/run_models/everest_run_model.py +++ b/src/ert/run_models/everest_run_model.py @@ -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[""] = _slug(ensemble.name) + substitutions[""] = 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()):