Skip to content
Snippets Groups Projects

first iteration of __isub__ method in RankingStat

Merged Leo Tsukada requested to merge offline_new-workflow-rankingstat-isub into offline_new-workflow
All threads resolved!
@@ -1130,7 +1130,7 @@ class LnNoiseDensity(LnLRDensity):
# NOTE : __isub__ method is actually not defined in BinnedLnPDF
# class, so .array attribute needs to be called.
lnpdf.array -= other.densities[key].array
assert all(lnpdf.array>=0), "SNR-chisq histogam for %s in the denominator contains negative counts. Check if you are subtracting a right histogram."
assert all(lnpdf.array>=0), "SNR-chisq histogam for %s in the denominator contains negative counts. Check if you are subtracting a right histogram." % key
lnpdf.normalize()
try:
Loading