You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pieces of functionality relevant to astronomy, and 2–3 demonstrations of
31
-
generic but commonly used functionality (e.g., ``numpy``, ``matplotlib``)
32
-
* Roughly follow this progression:
29
+
pieces of functionality relevant to astronomy, and contain 2–3 demonstrations of generic but commonly used functionality (e.g., ``numpy``, ``matplotlib``)
30
+
* Each tutorial should roughly follow this progression:
33
31
* *Input/Output*: read in some data (use `astroquery
34
32
<https://astroquery.readthedocs.io/en/latest/>`_ where possible to query
35
33
real astronomical datasets)
36
34
* *Analysis*: do something insightful / useful with the data
37
35
* *Visualization*: make a pretty figure (use `astropy.visualization
38
36
<http://docs.astropy.org/en/stable/visualization/>`_ where possible)
39
37
* The tutorials must be compatible with the versions supported by the last major
40
-
release of the Astropy core package (i.e. Python >= 3.5).
38
+
release of the Astropy core package (i.e. Python >= 3.5)
41
39
42
40
Code
43
41
^^^^
44
42
45
43
* Demonstrate good commenting practice
46
-
* add comments to sections of code that use concepts not included in the
44
+
* Add comments to sections of code that use concepts not included in the
47
45
Learning Goals
48
46
* Demonstrate best practices of variable names
49
47
* Variables should be all lower case with words separated by underscores
@@ -52,7 +50,7 @@ Code
52
50
* As much as possible, comply with `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_.
53
51
* Imports
54
52
* Do not use ``from package import *``; import packages, classes, and
55
-
functions explicitly.
53
+
functions explicitly
56
54
* Follow recommended package name abbreviations:
57
55
* ``import numpy as np``
58
56
* ``import matplotlib as mpl``
@@ -71,10 +69,10 @@ Narrative
71
69
* Use `Markdown formatting <http://jupyter-notebook.readthedocs.io/en/latest/exa
72
70
mples/Notebook/Working%20With%20Markdown%20Cells.html>`_ in text cells for
73
71
formatting, links, latex, and code snippets.
74
-
* Title should be short yet descriptive and emphasize the learning goals of the
72
+
* Titles should be short yet descriptive and emphasize the learning goals of the
75
73
tutorial. Try to make the title appeal to a broad audience and avoid
76
74
referencing a specific instrument, catalog, or anything wavelength dependent.
77
-
* List all author's full names (comma separated) and link to GitHub profile
75
+
* List all authors' full names (comma separated) and link to GitHub profiles
78
76
and/or `ORCID iD <https://orcid.org/>`_ when relevant.
79
77
* Include `Learning Goals <http://tll.mit.edu/help/intended-learning-outcomes>`_
80
78
at the top as a bulleted list.
@@ -83,12 +81,10 @@ Narrative
83
81
* The first paragraph should give a brief overview of the entire tutorial
84
82
including relevant astronomy concepts.
85
83
* Use the first-person inclusive plural ("we"). For example, "We are going to
86
-
make a plot which..", "Above, we did it the hard way, but here is the easier
87
-
way..."
84
+
make a plot which...", or "Above, we did it the hard way, but here is the easier way..."
88
85
* Section headings should be in the imperative mood. For example, "Download the
89
86
data."
90
-
* Avoid words such as "obviously", "just", "simply", "easily". For example,
91
-
avoid "we just have to do this one thing."
87
+
* Avoid extraneous words such as "obviously", "just", "simply", or "easily." For example, avoid phrases like "we just have to do this one thing."
92
88
* Use ``<div class="alert alert-info">Note</div>`` for Notes and ``<div
93
89
class="alert alert-warning">Warning</div>`` for Warnings (Markdown supports
94
90
raw HTML)
@@ -115,10 +111,10 @@ Template intro
115
111
Carroll & Ostlie 10.3, Binney & Tremaine 1.5
116
112
117
113
## Summary
118
-
In this tutorial, we download a data file, do something to it, and then
114
+
In this tutorial, we will download a data file, do something to it, and then
119
115
visualize it.
120
116
121
-
Procedure for Contributing
117
+
Procedure for contributing
122
118
--------------------------
123
119
124
120
The process for contributing a tutorial involves the `GitHub fork
@@ -148,7 +144,7 @@ be the same as the subdirectory name. We'll create a new directory in
148
144
All files used by the tutorial -- e.g., example data files, the Jupyter
149
145
notebook file itself -- should go in this directory.
150
146
151
-
Specify the python packages the tutorial depends on by creating a text file
147
+
Specify the Python packages the tutorial depends on by creating a text file
152
148
called ``requirements.txt`` in the same notebook directory. For example, if your
153
149
tutorial requires ``scipy`` version 1.0 and ``numpy`` version 1.13 or greater,
154
150
your ``requirements.txt`` file would look like:
@@ -210,9 +206,7 @@ procedure:
210
206
with open(mydatafilename2) as f:
211
207
...
212
208
213
-
If you do this, the only change necessary on merging your notebook will be to
If you do this, the only change necessary when merging your notebook will be to set ``tutorialpath`` to ``'http://data.astropy.org/tutorials/My-tutorial-name/'``.
216
210
217
211
If you need information or help with:
218
212
@@ -225,9 +219,9 @@ please see the :ref:`dev-page`.
225
219
For repository maintainers
226
220
^^^^^^^^^^^^^^^^^^^^^^^^^^
227
221
228
-
If this above procedure is followed, you only need to do these steps when
222
+
If this above procedure is followed, you only need to do these three steps when
229
223
merging your pull request:
230
224
231
225
1. Do ``git rebase -i`` and delete the commits that include the data files
232
226
2. Upload the data files to ``http://data.astropy.org/tutorials/My-tutorial-name/``
Examples are stand-alone code snippets that live in the astropy documentation that demonstrate a specific functionality within a package.
4
+
Examples are stand-alone code snippets that live in the Astropy documentation which demonstrate a specific functionality within a package.
5
5
Examples don't provide conceptual background/context or exhaustive explanation of the functionality being demonstrated.
6
-
Examples have less explanation, they may prompt questions which can be answered by scrolling up and down into the documentation.
6
+
Examples have less explanation—they may prompt questions which can be answered by scrolling up and down into the documentation.
7
7
8
8
See the `Astropy Examples <http://docs.astropy.org/en/stable/generated/examples/index.html>`_ for a structured view of the examples within the Astropy project.
Copy file name to clipboardExpand all lines: tutorials/guides.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@ Guides
2
2
======
3
3
4
4
The guides are long-form narrative, comprehensive, conceptually-focused documents (chapter-ish) providing stand-alone introductions to core packages in addition to the underlying astronomical concepts (e.g., CCDproc with observing-lite/image reduction).
5
-
These Guides will be a series of tutorials joined with conceptual/explanatory "glue".
5
+
These guides will be a series of tutorials joined with conceptual/explanatory "glue."
6
6
7
7
Coming soon!
8
-
8
+
9
9
Example: `Astronomical Spectroscopy by Massey & Hanson <https://arxiv.org/abs/1010.5270>`_
10
10
11
-
**This is dummy text and will be replaces in the final build.**
11
+
**This is dummy text and will be replaced in the final build.**
Copy file name to clipboardExpand all lines: tutorials/index.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ Learn Astropy
2
2
=============
3
3
Astropy is a Python library for use in astronomy.
4
4
Learn Astropy provides a portal to all of the Astropy educational material through a single dynamically searchable web page.
5
-
It allows you to filter tutorials by keywords, search for filters, make search queries in tutorials and documentation simultaneously.
5
+
It allows you to filter tutorials by keywords, search for filters, and make search queries in tutorials and documentation simultaneously.
6
6
7
7
Installing Astropy
8
8
------------------
@@ -13,7 +13,7 @@ The `Anaconda Python Distribution <https://www.anaconda.com/download/>`_ include
13
13
14
14
conda update astropy
15
15
16
-
To install Astropy from source into an existing Python installation, see the more detailed `installation instructions <http://astropy.readthedocs.io/en/stable/install.html>`_ in the main Astropy documentation.
16
+
To install Astropy from the source into an existing Python installation, see the more detailed `installation instructions <http://astropy.readthedocs.io/en/stable/install.html>`_ in the main Astropy documentation.
17
17
18
18
Get help
19
19
--------
@@ -25,7 +25,7 @@ For contributors
25
25
----------------
26
26
27
27
We welcome feedback, improvements, and new tutorial content via the `Astropy
28
-
Tutorials repository <https://github.com/astropy/astropy-tutorials>`_ on
28
+
Tutorials Repository <https://github.com/astropy/astropy-tutorials>`_ on
29
29
GitHub. If you find a typo or would like to clarify some text, please either
30
30
`create an issue <https://github.com/astropy/astropy-tutorials/issues/new>`_ or
31
31
make the change yourself and then submit a pull request directly to the
0 commit comments