Skip to content

Commit 49f7447

Browse files
authored
update the citing information (#324)
this now automatically fetches the zenodo bibtex for the latest release, following the approach from pynucastro
1 parent 997469d commit 49f7447

File tree

9 files changed

+80
-56
lines changed

9 files changed

+80
-56
lines changed

CITATION

Lines changed: 0 additions & 17 deletions
This file was deleted.

CITATION.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
If you use pyro, please cite the pyro JOSS paper *and* the latest Zenodo DOI.
2+
3+
## JOSS
4+
5+
The pyro JOSS paper is at: https://joss.theoj.org/papers/10.21105/joss.01265
6+
7+
You can cite it as:
8+
9+
```bibtex
10+
@article{pyro_joss,
11+
doi = {10.21105/joss.01265},
12+
url = {https://doi.org/10.21105/joss.01265},
13+
year = {2019},
14+
publisher = {The Open Journal},
15+
volume = {4},
16+
number = {34},
17+
pages = {1265},
18+
author = {Alice Harpole and Michael Zingale and Ian Hawke and Taher Chegini},
19+
title = {pyro: a framework for hydrodynamics explorations and prototyping},
20+
journal = {Journal of Open Source Software}
21+
}
22+
```
23+
24+
## Astronomy and Computing
25+
26+
You can also additionally cite the paper from *Astronomy and Computing*:
27+
28+
```bibtex
29+
@article{pyro_ac,
30+
author = {{Zingale}, M.},
31+
title = "{pyro: A teaching code for computational astrophysical hydrodynamics}",
32+
journal = {Astronomy and Computing},
33+
year = 2014,
34+
month = {oct},
35+
volume = 6,
36+
pages = {52-62},
37+
doi = {10.1016/j.ascom.2014.07.003}
38+
}
39+
```
40+
41+
## Zenodo
42+
43+
The latest pyro Zenodo record is at https://doi.org/10.5281/zenodo.2575564
44+
45+
46+

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ help:
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
2020
./document_problems.py
21+
curl -L -H 'Accept: application/x-bibtex' https://zenodo.org/api/records/2575564 > source/zenodo.bibtex.txt
2122
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/ack.rst

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
11
Acknowledgments
22
===============
33

4-
The current pyro developers are listed in the `.zenodo.json` file that
5-
is used for releases.
6-
7-
You are free to use this code and the accompanying notes in your
8-
classes. Please credit "pyro development team" for the code, and
9-
*please send a note to the pyro-help e-mail list describing how you
10-
use it, so we can keep track of it (and help justify the development
11-
effort).*
12-
13-
If you use pyro in a publication, please cite it using this bibtex
14-
citation::
15-
16-
@article{pyro,
17-
doi = {10.21105/joss.01265},
18-
url = {https://doi.org/10.21105/joss.01265},
19-
year = {2019},
20-
publisher = {The Open Journal},
21-
volume = {4},
22-
number = {34},
23-
pages = {1265},
24-
author = {Alice Harpole and Michael Zingale and Ian Hawke and Taher Chegini},
25-
title = {pyro: a framework for hydrodynamics explorations and prototyping},
26-
journal = {Journal of Open Source Software}
27-
}
28-
294
pyro benefited from numerous useful discussions with Ann Almgren, John
305
Bell, and Andy Nonaka.
31-
32-
33-
History
34-
=======
35-
36-
The original pyro code was written in 2003-4 to help developer
37-
Zingale understand these methods for himself. It was originally written
38-
using the Numeric array package and handwritten C extensions for the
39-
compute-intensive kernels. It was ported to numarray when that
40-
replaced Numeric, and continued to use C extensions. This version
41-
"pyro2" was resurrected beginning in 2012 and rewritten for numpy
42-
using f2py, and brought up to date. Most recently we've dropped
43-
f2py and are using numba for the compute-intensive kernels.
44-

docs/source/citing.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Citing pyro
2+
===========
3+
4+
You are free to use this code and the accompanying notes in your
5+
classes. Please credit "pyro development team" for the code, and
6+
*please make a post to the pyro github discussions describing how you
7+
use it, so we can keep track of it (and help justify the development
8+
effort).*
9+
10+
.. mdinclude:: ../../CITATION.md
11+
12+
The bibtex for the latest version is included below (updated automatically):
13+
14+
.. literalinclude:: ./zenodo.bibtex.txt
15+
:language: bibtex
16+
17+

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
'sphinx_copybutton',
4848
'sphinx_math_dollar',
4949
'sphinx-prompt',
50+
'sphinx_mdinclude',
5051
'IPython.sphinxext.ipython_console_highlighting',
5152
'sphinx.ext.githubpages']
5253

docs/source/history.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
History
2+
=======
3+
4+
The original pyro code was written in 2003-4 to help developer
5+
Zingale understand these methods for himself. It was originally written
6+
using the Numeric array package and handwritten C extensions for the
7+
compute-intensive kernels. It was ported to numarray when that
8+
replaced Numeric, and continued to use C extensions. This version
9+
"pyro2" was resurrected beginning in 2012 and rewritten for numpy
10+
using f2py, and brought up to date. Most recently we've dropped
11+
f2py and are using numba for the compute-intensive kernels.
12+

docs/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ new ideas.
9090
:hidden:
9191

9292
help
93+
history
9394
ack
95+
citing
9496

9597
.. toctree::
9698
:maxdepth: 1

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ sphinxcontrib-bibtex
1414
sphinx-math-dollar
1515
sphinx-copybutton
1616
sphinx-prompt
17+
sphinx-mdinclude
1718
importlib-metadata
1819
prettytable
1920
codespell

0 commit comments

Comments
 (0)