Skip to content

Commit 92ee777

Browse files
authoredMay 29, 2020
Fix p-value calculation to match plotting
1 parent 7fc59dd commit 92ee777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎flarestack/core/ts_distributions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,10 @@ def integral(x):
438438

439439
if ts_val > np.median(ts_array):
440440

441-
val = (ts_val - frac_under) / (1. - frac_under)
441+
# val = (ts_val - frac_under) / (1. - frac_under)
442442

443443
cdf = frac_under + frac_over * scipy.stats.chi2.cdf(
444-
val, df, loc, scale)
444+
ts_val, df, loc, scale)
445445

446446
sig = norm.ppf(cdf)
447447

0 commit comments

Comments
 (0)
Please sign in to comment.