-
Notifications
You must be signed in to change notification settings - Fork 85
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: Make p-value-like values 0-d tensors #1311
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1311 +/- ##
=======================================
Coverage 97.49% 97.50%
=======================================
Files 63 63
Lines 3758 3760 +2
Branches 537 538 +1
=======================================
+ Hits 3664 3666 +2
Misses 55 55
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
cc @alexander-held for feedback on any downstream problems with this. |
Thanks! |
Description
Resolves #1268
Ensure all p-value-like values and test statistics are given as 0-d tensors and harmonize returns types across calculator types.
ReadTheDocs build: https://pyhf.readthedocs.io/en/fix-ensure-p-value-like-return-type/
pyhf.infer.calculators.AsymptoticCalculator
pyhf.infer.calculators.ToyCalculator
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: