aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2019-04-13 12:37:18 -0500
committershivesh <s.p.mandalia@qmul.ac.uk>2019-04-13 12:37:18 -0500
commitaf72b63ae519c3cffc84cacadb7300ffceaa39df (patch)
tree8f2a4f5d97e6da80a8c7920e60d58d520e1f1107
parentde54f2e44042920762ecc7fd86cd5a17356e77c3 (diff)
downloadGolemFlavor-af72b63ae519c3cffc84cacadb7300ffceaa39df.tar.gz
GolemFlavor-af72b63ae519c3cffc84cacadb7300ffceaa39df.zip
add discovery check
-rw-r--r--utils/plot.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/plot.py b/utils/plot.py
index 4f9d961..954c24b 100644
--- a/utils/plot.py
+++ b/utils/plot.py
@@ -1141,6 +1141,10 @@ def plot_x(data, outfile, outformat, args):
scales, statistic = ma.compress_rows(r_data[idim][itex][isrc]).T
print 'scales', scales
print 'statistic', statistic
+ max_st = np.max(statistic)
+ if args.stat_method is StatCateg.BAYESIAN:
+ if (statistic[0] - max_st) > np.log(10**(BAYES_K)):
+ raise AssertionError('Discovered LV!')
try:
tck, u = splprep([scales, statistic], s=0)