Skip to content

Commit

Permalink
Note that doing this to create scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Jul 14, 2020
1 parent 69d03bc commit 23d45eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyhf/infer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def hypotest(
CLsb = sig_plus_bkg_distribution.pvalue(teststat)
CLb = b_only_distribution.pvalue(teststat)
CLs = CLsb / CLb
# Ensure that all CL values are scalars
CLsb, CLb, CLs = (
tensorlib.reshape(CLsb, ()),
tensorlib.reshape(CLb, ()),
Expand Down

0 comments on commit 23d45eb

Please sign in to comment.