From f9bec4bd396bda29750a8ab9b172f6d64bcb486d Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 17 Feb 2021 08:44:53 -0600 Subject: [PATCH 1/3] Use more flexible author syntax --- src/pyhf/data/citation.bib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/data/citation.bib b/src/pyhf/data/citation.bib index 9ca644c1d1..75aa1c6145 100644 --- a/src/pyhf/data/citation.bib +++ b/src/pyhf/data/citation.bib @@ -1,5 +1,5 @@ @software{pyhf, - author = "{Heinrich, Lukas and Feickert, Matthew and Stark, Giordon}", + author = "{Lukas Heinrich and Matthew Feickert and Giordon Stark}", title = "{pyhf: v0.6.0}", version = {0.6.0}, doi = {10.5281/zenodo.1169739}, From 7b5d01b0d715c575e396f485221ad5d9c9796dfa Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 17 Feb 2021 08:45:28 -0600 Subject: [PATCH 2/3] Remove quotes for BibTeX to use as needed --- src/pyhf/data/citation.bib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/data/citation.bib b/src/pyhf/data/citation.bib index 75aa1c6145..afc11f8e00 100644 --- a/src/pyhf/data/citation.bib +++ b/src/pyhf/data/citation.bib @@ -1,5 +1,5 @@ @software{pyhf, - author = "{Lukas Heinrich and Matthew Feickert and Giordon Stark}", + author = {Lukas Heinrich and Matthew Feickert and Giordon Stark}, title = "{pyhf: v0.6.0}", version = {0.6.0}, doi = {10.5281/zenodo.1169739}, From 9d6ab5f4d10386808a1b0b2d5941276106d3110d Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 17 Feb 2021 09:22:16 -0600 Subject: [PATCH 3/3] fix doctest --- src/pyhf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/utils.py b/src/pyhf/utils.py index f56ff1c300..079cf1efc6 100644 --- a/src/pyhf/utils.py +++ b/src/pyhf/utils.py @@ -142,7 +142,7 @@ def citation(oneline=False): >>> import pyhf >>> pyhf.utils.citation(True) - '@software{pyhf, author = "{Heinrich, Lukas and Feickert, Matthew and Stark, Giordon}", title = "{pyhf: v0.6.0}", version = {0.6.0}, 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.0}", version = {0.6.0}, 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: oneline (:obj:`bool`): Whether to provide citation with new lines (default) or as a one-liner.