Inconsistent return types of model.config.suggested_bounds()
when using parameter config
#2462
Open
1 task done
Labels
bug
Something isn't working
needs-triage
Needs a maintainer to categorize and assign
user request
Request coming form a pyhf user
Summary
model.config.suggested_bounds()
usually is a list of tuples, but the list elements become lists themselves when using a custom parameter configuration. That doesn't break any functionality I am aware of and the return is not typed to declare to be a list of tuples, but I assume the inconsistency is not intended.The current behavior makes typing just slightly more convoluted. I caught this via dynamic type checking, a
typeguard
bug fix now flags this incabinetry
.OS / Environment
n/a
Steps to Reproduce
results in
while removing the parameter config produces
[(0, 10), (1e-10, 10.0)]
.File Upload (optional)
n/a
Expected Results
see above
Actual Results
see above
pyhf Version
current
main
, 39db83bCode of Conduct
The text was updated successfully, but these errors were encountered: