Commit c9c60ab4 authored by Philipp Arras's avatar Philipp Arras
Browse files

Add colors for too small values

parent 9cbf7497
......@@ -476,9 +476,9 @@ def _comp_chisq(op, energy, keylen):
foo += f" ± {np.sqrt(redchisq[kk].var):.1f}"
except RuntimeError:
pass
if redchisq[kk].mean > 5:
if redchisq[kk].mean > 5 or redchisq[kk].mean < 1/5:
out += _bcolors.FAIL + _bcolors.BOLD + f"{foo:>11}" + _bcolors.ENDC
elif redchisq[kk].mean > 2:
elif redchisq[kk].mean > 2 or redchisq[kk].mean < 1/2:
out += _bcolors.WARNING + _bcolors.BOLD + f"{foo:>11}" + _bcolors.ENDC
else:
out += f"{foo:>11}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment