From feffb49a994f7806cb8bb446b618451b08703160 Mon Sep 17 00:00:00 2001 From: Matthieu Marinangeli Date: Tue, 18 Jun 2019 23:15:16 +0200 Subject: [PATCH] fix typo in qtidle case in asymptotic_calculator.py --- lauztat/calculators/asymptotic_calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lauztat/calculators/asymptotic_calculator.py b/lauztat/calculators/asymptotic_calculator.py index 3894440..c5e916f 100644 --- a/lauztat/calculators/asymptotic_calculator.py +++ b/lauztat/calculators/asymptotic_calculator.py @@ -136,8 +136,8 @@ def pvalue(self, poinull, poialt=None, qtilde=False, onesided=True, pnull_2 += 1. - norm.cdf(sqrtqobs) palt_2 += 1. - norm.cdf(sqrtqobs + sqrtqalt) - pnull = np.where(cond, pnull, pnull_2) - palt = np.where(cond, palt, palt_2) + pnull = np.where(cond, pnull_2, pnull) + palt = np.where(cond, palt_2, palt) return pnull, palt