Skip to content

Commit

Permalink
Remove unused getAllEnsembleList from csv_export
Browse files Browse the repository at this point in the history
getItems of listeditbox.py deals with the case when users
specify "*", i.e., that they want to export all ensembles.
  • Loading branch information
dafeda committed Aug 22, 2024
1 parent ef64736 commit 5d8079f
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 5d8079f

Please sign in to comment.