Skip to content

Commit

Permalink
enh: add compwa PDF wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Oct 13, 2024
1 parent 3ac5958 commit b7d3d95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ dependencies = ["zfit>=0.20"]
dynamic = ["version"]

[project.optional-dependencies]
pyhf = [
"pyhf",
]

all = [
"zfit-physics[pyhf]",
]

dev = [
"bumpversion>=0.5.3",
"coverage>=4.5.1",
Expand Down Expand Up @@ -65,6 +73,8 @@ dev = [
"twine>=1.10.0",
"watchdog>=0.8.3",
"wheel>=0.29.0",
"zfit-physics[all]",
"tensorwaves[phsp]",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tests/pyhf/test_pyhf_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_nll_from_pyhf_simple():
nll = zpyhf.loss.nll_from_pyhf(data, pdf)

minimizer = zfit.minimize.Minuit(verbosity=7)
resultz = minimizer.minimize(nll)
# resultz = minimizer.minimize(nll)

values, fmin = pyhf.infer.mle.fit(
data, pdf, pdf.config.suggested_init(), pdf.config.suggested_bounds(), return_fitted_val=True
Expand Down

0 comments on commit b7d3d95

Please sign in to comment.