From a55e1a7f4220a477f26ff4085cf7432d788b88f1 Mon Sep 17 00:00:00 2001 From: remy <remy.dernat@umontpellier.fr> Date: Tue, 26 Nov 2019 19:26:07 +0100 Subject: [PATCH] debuging retrieving plots from the fitting curve --- orthofinder/scripts/scnorm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/orthofinder/scripts/scnorm.py b/orthofinder/scripts/scnorm.py index 70bf908..bb8e736 100644 --- a/orthofinder/scripts/scnorm.py +++ b/orthofinder/scripts/scnorm.py @@ -167,9 +167,10 @@ class scnorm: if row[12] == selfHitNormBlastScore: try: x = float(row[11]) - for index, values in all_plots: - if values == x: - NormBS = index + x = np.format_float_scientific(x, precision=8, unique=False, trim='k') + for index, value in all_plots: + if index == x: + NormBS = value break row[12] = NormBS except (IndexError, ValueError): -- GitLab