From 23d45ebe70d171458a0a42b7d6f0ee4c14230eac Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 14 Jul 2020 01:27:55 -0500 Subject: [PATCH] Note that doing this to create scalars --- src/pyhf/infer/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyhf/infer/__init__.py b/src/pyhf/infer/__init__.py index 84af10d914..09a74126e6 100644 --- a/src/pyhf/infer/__init__.py +++ b/src/pyhf/infer/__init__.py @@ -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, ()),