From 65aeebd3bef1c3fe563226b1dd8222783ee405bf Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 17 Dec 2021 16:58:32 +0300 Subject: Add "success" status to final computation results Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi --- gn3/computations/partial_correlations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py index 3a229ea..13c411a 100644 --- a/gn3/computations/partial_correlations.py +++ b/gn3/computations/partial_correlations.py @@ -715,7 +715,9 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911] sorted_correlations[:min(criteria, len(all_correlations))])) return { + "status": "success", + "results": { "primary_trait": primary_trait, "control_traits": cntrl_traits, "correlations": trait_list - } + }} -- cgit v1.2.3