-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Make par_names
a _ModelConfig property attribute
#2027
Conversation
* Make par_names() a property attribute to match the par_names API.
@kratsg @lukasheinrich while adding the >>> import pyhf
>>> model = pyhf.simplemodels.correlated_background(
... signal=[12.0, 11.0],
... bkg=[50.0, 52.0],
... bkg_up=[45.0, 57.0],
... bkg_down=[55.0, 47.0],
... )
>>> model.config.par_order
['correlated_bkg_uncertainty', 'mu']
>>> model.config.par_names()
['correlated_bkg_uncertainty', 'mu'] example to PR #1705 I noted there's a bit of an inconsistency here in API. Can we slip this in under the wire for |
@alexander-held This will hit
|
See #1700, I assume that will still go into 0.7? |
Nice. 😎
Unless people object to be messing around with the API this late. 😬 |
CI is failing as I forgot that because of PR #1536 Lines 579 to 582 in cccbda1
needs to get fixes now too. I think this requires use of |
Codecov ReportBase: 98.29% // Head: 98.30% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2027 +/- ##
=======================================
Coverage 98.29% 98.30%
=======================================
Files 69 69
Lines 4529 4530 +1
Branches 738 738
=======================================
+ Hits 4452 4453 +1
Misses 45 45
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Description
Resolves #1700
Make
pyhf.pdf._ModelConfig.par_names()
a property attribute to match thepyhf.pdf._ModelConfig.par_order
API.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: