From a98d946995955a9914185dccb66360490a354756 Mon Sep 17 00:00:00 2001 From: Lukas Heinrich Date: Mon, 18 Oct 2021 19:21:36 +0200 Subject: [PATCH] commit --- tests/test_pdf.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/test_pdf.py b/tests/test_pdf.py index 6ea58d0dea..efd1520a2a 100644 --- a/tests/test_pdf.py +++ b/tests/test_pdf.py @@ -331,12 +331,7 @@ def test_pdf_integration_shapesys_zeros(backend): "data": [10, 9, 1, 0.0, 0.1, 5], "name": "syst", "type": "shapesys", - }, - { - "data": [0, 0, 0, 0, 0, 0], - "name": "syst_lowstats", - "type": "shapesys", - }, + } ], "name": "background1", }, @@ -346,10 +341,8 @@ def test_pdf_integration_shapesys_zeros(backend): } pdf = pyhf.Model(spec) par_set_syst = pdf.config.param_set('syst') - par_set_syst_lowstats = pdf.config.param_set('syst_lowstats') assert par_set_syst.n_parameters == 4 - assert par_set_syst_lowstats.n_parameters == 0 tensorlib, _ = backend nominal_sq = tensorlib.power(tensorlib.astensor([100.0, 90, 0.0, 70, 0.1, 50]), 2) uncerts_sq = tensorlib.power(tensorlib.astensor([10, 9, 1, 0.0, 0.1, 5]), 2) @@ -358,7 +351,6 @@ def test_pdf_integration_shapesys_zeros(backend): assert pytest.approx(tensorlib.tolist(par_set_syst.factors)) == tensorlib.tolist( tensorlib.gather(factors, indices) ) - assert getattr(par_set_syst_lowstats, 'factors', None) is None @pytest.mark.only_numpy