Commit 35035ce9 authored by chad.hanna's avatar chad.hanna Committed by Patrick Godwin
Browse files

far.py: Tweaked extinction model for early warning

parent 3b98654d
......@@ -733,10 +733,10 @@ WHERE
# get the zerolag counts.
# we model the tail of the distribution - top 0.1 - 1% - where
# clustering only effects the result at a < 1% level.
if zl_counts.sum() < 100 * 1000:
if zl_counts.sum() < 100 * 100:
tail_zl_counts = zl_counts.sum() * 0.99
else:
tail_zl_counts = zl_counts.sum() - 1000
tail_zl_counts = zl_counts.sum() - 100
onepercent = zl_counts.cumsum().searchsorted(tail_zl_counts)
# normalize the counts
......
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