-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Guard against nan in test stat calculation (#1993)
* Guard against nan from division by zero in pyhf.infer.calculators.AsymptoticCalculator.teststatistic. * Add use of 'less than or equal to' to docs for tests stats to match equations 14 and 16 of https://arxiv.org/abs/1007.1727. * Add tests to ensure that nan conditions in Issue #529 and Issue #1992 are not possible.
- Loading branch information
1 parent
287bfae
commit ee183eb
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters