Skip to content

Commit

Permalink
Ensure float is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Jul 21, 2020
1 parent c3b4f34 commit 952dbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyhf/infer/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ def qmu(mu, data, pdf, init_pars, par_bounds):
qmu = tensorlib.where(
muhatbhat[pdf.config.poi_index] > mu, tensorlib.astensor(0.0), qmu
)
return tensorlib.clip(qmu, 0, max_value=None)
return tensorlib.clip(qmu, 0, max_value=None)[0]

0 comments on commit 952dbd0

Please sign in to comment.