Skip to content

Commit

Permalink
add poi_name='mu'
Browse files Browse the repository at this point in the history
  • Loading branch information
phinate committed Oct 20, 2023
1 parent b1c9b3d commit 3a22760
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_optim.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def test_optim_with_value(backend, source, spec, mu):
@pytest.mark.parametrize('mu', [1.0], ids=['mu=1'])
@pytest.mark.only_numpy_minuit
def test_optim_uncerts_minuit(backend, source, spec, mu):
pdf = pyhf.Model(spec)
pdf = pyhf.Model(spec, poi_name="mu")
data = source['bindata']['data'] + pdf.config.auxdata

init_pars = pdf.config.suggested_init()
Expand Down Expand Up @@ -408,7 +408,7 @@ def test_optim_uncerts_minuit(backend, source, spec, mu):
@pytest.mark.skip_numpy
@pytest.mark.skip_numpy_minuit
def test_optim_uncerts_autodiff(backend, source, spec, mu):
pdf = pyhf.Model(spec)
pdf = pyhf.Model(spec, poi_name="mu")
data = source['bindata']['data'] + pdf.config.auxdata

init_pars = pdf.config.suggested_init()
Expand Down Expand Up @@ -438,7 +438,7 @@ def test_optim_uncerts_autodiff(backend, source, spec, mu):
@pytest.mark.parametrize('mu', [1.0], ids=['mu=1'])
@pytest.mark.only_numpy_minuit
def test_optim_correlations_minuit(backend, source, spec, mu):
pdf = pyhf.Model(spec)
pdf = pyhf.Model(spec, poi_name="mu")
data = source['bindata']['data'] + pdf.config.auxdata

init_pars = pdf.config.suggested_init()
Expand Down Expand Up @@ -470,7 +470,7 @@ def test_optim_correlations_minuit(backend, source, spec, mu):
@pytest.mark.skip_numpy
@pytest.mark.skip_numpy_minuit
def test_optim_correlations_autodiff(backend, source, spec, mu):
pdf = pyhf.Model(spec)
pdf = pyhf.Model(spec, poi_name="mu")
data = source['bindata']['data'] + pdf.config.auxdata

init_pars = pdf.config.suggested_init()
Expand Down

0 comments on commit 3a22760

Please sign in to comment.