Skip to content
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

Promote model._modifications to public API #1652

Closed
1 task done
alexander-held opened this issue Oct 19, 2021 · 0 comments · Fixed by #2339
Closed
1 task done

Promote model._modifications to public API #1652

alexander-held opened this issue Oct 19, 2021 · 0 comments · Fixed by #2339
Assignees
Labels
API Changes the public API feat/enhancement New feature or request

Comments

@alexander-held
Copy link
Member

Summary

pyhf.pdf._MainModel._modifications is useful for model visualization and debugging. See for example #1639 (comment). It also came up in the discussion #1414. This function is currently not part of the public API. Given its usefulness, I propose changing that. This suggestion also came up in #1461 (comment).

Two alternatives are possible: using the _modifications API even though it signals it is not public (accepting a possible breaking change in the future), or re-implementing it externally.

Additional Information

See #1639 (comment) for example usage, this API could presumably also be used for pyhf-validation/scripts/validate_systs.py.

Code of Conduct

  • I agree to follow the Code of Conduct
@alexander-held alexander-held added feat/enhancement New feature or request needs-triage Needs a maintainer to categorize and assign labels Oct 19, 2021
@kratsg kratsg self-assigned this Sep 20, 2023
@kratsg kratsg added API Changes the public API and removed needs-triage Needs a maintainer to categorize and assign labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes the public API feat/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants