Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix brentq returning the lower bound of 0 for flat li ma function #89

Merged
merged 5 commits into from Oct 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyirf/statistics.py
Expand Up @@ -46,7 +46,7 @@ def li_ma_significance(n_on, n_off, alpha=0.2):

significance = np.sqrt(ts * 2)

significance[n_on < alpha * n_off] = 0
significance[n_on < (alpha * n_off)] = 0

if scalar:
return significance[0]
Expand Down