Skip to content

Commit a98d946

Browse files
committed
commit
1 parent c0f52ec commit a98d946

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tests/test_pdf.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,7 @@ def test_pdf_integration_shapesys_zeros(backend):
331331
"data": [10, 9, 1, 0.0, 0.1, 5],
332332
"name": "syst",
333333
"type": "shapesys",
334-
},
335-
{
336-
"data": [0, 0, 0, 0, 0, 0],
337-
"name": "syst_lowstats",
338-
"type": "shapesys",
339-
},
334+
}
340335
],
341336
"name": "background1",
342337
},
@@ -346,10 +341,8 @@ def test_pdf_integration_shapesys_zeros(backend):
346341
}
347342
pdf = pyhf.Model(spec)
348343
par_set_syst = pdf.config.param_set('syst')
349-
par_set_syst_lowstats = pdf.config.param_set('syst_lowstats')
350344

351345
assert par_set_syst.n_parameters == 4
352-
assert par_set_syst_lowstats.n_parameters == 0
353346
tensorlib, _ = backend
354347
nominal_sq = tensorlib.power(tensorlib.astensor([100.0, 90, 0.0, 70, 0.1, 50]), 2)
355348
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):
358351
assert pytest.approx(tensorlib.tolist(par_set_syst.factors)) == tensorlib.tolist(
359352
tensorlib.gather(factors, indices)
360353
)
361-
assert getattr(par_set_syst_lowstats, 'factors', None) is None
362354

363355

364356
@pytest.mark.only_numpy

0 commit comments

Comments
 (0)