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 1d6c9c7
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 @@ -58,5 +58,5 @@ def qmu(mu, data, pdf, init_pars, par_bounds):
qmu = fixed_poi_fit_lhood_val - unconstrained_fit_lhood_val
qmu = tensorlib.where(
muhatbhat[pdf.config.poi_index] > mu, tensorlib.astensor(0.0), qmu
)
)[0]
return tensorlib.clip(qmu, 0, max_value=None)

0 comments on commit 1d6c9c7

Please sign in to comment.