From fa57e53e0fe8db4f05f04c3b9fdb286a39daff62 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 5 Nov 2025 14:47:59 -0600 Subject: Fix issues caught by linter. --- uploader/phenotypes/views.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'uploader/phenotypes/views.py') diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index cefa6f2..7002ccd 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -234,11 +234,6 @@ def view_phenotype(# pylint: disable=[unused-argument] population["Id"], dataset["Id"], xref_id) - def __non_empty__(value) -> bool: - if isinstance(value, str): - return value.strip() != "" - return bool(value) - return render_template( "phenotypes/view-phenotype.html", species=species, @@ -1020,14 +1015,13 @@ def load_data_success( species_redirect_uri="species.populations.phenotypes.index", population_redirect_uri="species.populations.phenotypes.select_population", redirect_uri="species.populations.phenotypes.list_datasets") -def recompute_means( +def recompute_means(# pylint: disable=[unused-argument] species: dict, population: dict, dataset: dict, **kwargs ): """Compute/Recompute the means for phenotypes in a particular population.""" - form = request.form _jobs_db = app.config["ASYNCHRONOUS_JOBS_SQLITE_DB"] _job_id = uuid.uuid4() _xref_ids = tuple(int(item.split("_")[-1]) @@ -1038,7 +1032,7 @@ def recompute_means( sys.executable, "-u", "-m", - "scripts.compute-phenotype-means", + "scripts.compute_phenotype_means", app.config["SQL_URI"], _jobs_db, str(population["Id"]), -- cgit 1.4.1