Skip to content

Commit

Permalink
docs: Update software citation URL to Zenodo DOI (#1424)
Browse files Browse the repository at this point in the history
* Update the 'url' field in the requested software citation to be the Zenodo DOI URL
* Add a 'note' field that has the GitHub release URL
  • Loading branch information
matthewfeickert authored Apr 29, 2021
1 parent cc38945 commit 2efe0d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ the preferred BibTeX entry for citation of ``pyhf`` includes both the
title = "{pyhf: v0.6.1}",
version = {0.6.1},
doi = {10.5281/zenodo.1169739},
url = {https://github.com/scikit-hep/pyhf},
url = {https://doi.org/10.5281/zenodo.1169739},
note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.6.1}
}
@article{pyhf_joss,
Expand Down
3 changes: 2 additions & 1 deletion docs/release-notes/v0.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ CLI API
title = "{pyhf: v0.6.0}",
version = {0.6.0},
doi = {10.5281/zenodo.1169739},
url = {https://github.com/scikit-hep/pyhf},
url = {https://doi.org/10.5281/zenodo.1169739},
note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.6.0}
}
@article{pyhf_joss,
Expand Down
3 changes: 2 additions & 1 deletion src/pyhf/data/citation.bib
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ @software{pyhf
title = "{pyhf: v0.6.1}",
version = {0.6.1},
doi = {10.5281/zenodo.1169739},
url = {https://github.com/scikit-hep/pyhf},
url = {https://doi.org/10.5281/zenodo.1169739},
note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.6.1}
}

@article{pyhf_joss,
Expand Down
2 changes: 1 addition & 1 deletion src/pyhf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def citation(oneline=False):
>>> import pyhf
>>> 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}}'
'@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://doi.org/10.5281/zenodo.1169739}, note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.6.1}}@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:
oneline (:obj:`bool`): Whether to provide citation with new lines (default) or as a one-liner.
Expand Down

0 comments on commit 2efe0d2

Please sign in to comment.