Skip to content

Commit ba84cd6

Browse files
committed
drop empty get_backend calls
1 parent 591bc59 commit ba84cd6

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/pyhf/infer/calculators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ def expected_pvalues(self, sig_plus_bkg_distribution, bkg_only_distribution):
524524
:math:`\mathrm{CL}_{b}`, and :math:`\mathrm{CL}_{s}`.
525525
"""
526526
# Calling pvalues is easier then repeating the CLs calculation here
527-
_, _ = get_backend()
528527
return list(
529528
map(
530529
list,

src/pyhf/optimize/opt_jax.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def wrap_objective(objective, data, pdf, stitch_pars, do_grad=False, jit_pieces=
4545
Returns:
4646
objective_and_grad (:obj:`func`): tensor backend wrapped objective,gradient pair
4747
"""
48-
_, _ = get_backend()
4948
# NB: tuple arguments that need to be hashable (static_argnums)
5049
if do_grad:
5150

0 commit comments

Comments
 (0)