From f7cad12a5545c04d13749fa7ee1dfbcb5690e106 Mon Sep 17 00:00:00 2001 From: ali-harasty <138732568+ali-harasty@users.noreply.github.com> Date: Wed, 17 Apr 2024 20:33:14 +1000 Subject: [PATCH] Update plot_cpdb.py Github fix --- ktplotspy/plot/plot_cpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktplotspy/plot/plot_cpdb.py b/ktplotspy/plot/plot_cpdb.py index b3eaf1a..17c56c7 100644 --- a/ktplotspy/plot/plot_cpdb.py +++ b/ktplotspy/plot/plot_cpdb.py @@ -363,7 +363,7 @@ def plot_cpdb( if df.at[i, "pvals"] < alpha: df.at[i, "x_means"] = np.nan if df.at[i, "pvals"] == 0: - df.at[i, "pvals"] = 0.001 + df.at[i, "pvals"] = 1**-result_precision if df.at[i, "pvals"] >= alpha: if keep_significant_only: df.at[i, "y_means"] = np.nan