Skip to content

Commit

Permalink
docs: Add utils.citation to Python API docs (#1419)
Browse files Browse the repository at this point in the history
* Add pyhf.utils.citation to the Python API docs
* Add oneline arg to docstring example to make output format more clear
  • Loading branch information
matthewfeickert authored Apr 29, 2021
1 parent f2f6e4b commit cc38945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ Utilities
validate
options_from_eqdelimstring
digest
citation

Contrib
-------
Expand Down
2 changes: 1 addition & 1 deletion src/pyhf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def citation(oneline=False):
Example:
>>> import pyhf
>>> pyhf.utils.citation(True)
>>> pyhf.utils.citation(oneline=True)
'@software{pyhf, author = {Lukas Heinrich and Matthew Feickert and Giordon Stark}, title = "{pyhf: v0.6.1}", version = {0.6.1}, doi = {10.5281/zenodo.1169739}, url = {https://github.com/scikit-hep/pyhf},}@article{pyhf_joss, doi = {10.21105/joss.02823}, url = {https://doi.org/10.21105/joss.02823}, year = {2021}, publisher = {The Open Journal}, volume = {6}, number = {58}, pages = {2823}, author = {Lukas Heinrich and Matthew Feickert and Giordon Stark and Kyle Cranmer}, title = {pyhf: pure-Python implementation of HistFactory statistical models}, journal = {Journal of Open Source Software}}'
Keyword Args:
Expand Down

0 comments on commit cc38945

Please sign in to comment.