From 5d8079fe2d9cc85059108c66dfd6075ef7aff156 Mon Sep 17 00:00:00 2001 From: Feda Curic Date: Thu, 22 Aug 2024 06:40:05 +0200 Subject: [PATCH] Remove unused getAllEnsembleList from csv_export getItems of listeditbox.py deals with the case when users specify "*", i.e., that they want to export all ensembles. --- .../jobs/internal-gui/scripts/csv_export.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py b/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py index 2941bec9583..829b9665ab4 100644 --- a/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py +++ b/src/ert/resources/workflows/jobs/internal-gui/scripts/csv_export.py @@ -60,11 +60,7 @@ def run( ensembles = [] facade = LibresFacade(ert_config) - if ensemble_list is not None: - if ensemble_list.strip() == "*": - ensembles = self.getAllEnsembleList(storage) - else: - ensembles = ensemble_list.split(",") + ensembles = ensemble_list.split(",") if ensemble_list is None or len(ensembles) == 0: ensembles = "default" @@ -126,10 +122,3 @@ def run( f"columns to {output_file}." ) return export_info - - @staticmethod - def getAllEnsembleList(storage): - all_ensemble_list = [ - ensemble.name for ensemble in storage.ensembles if ensemble.has_data() - ] - return all_ensemble_list