-
Notifications
You must be signed in to change notification settings - Fork 182
Updates to Content Guidelines #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I made minor suggestions for word choice.
CONTRIBUTING.md
Outdated
- [astropy.coordinates](http://docs.astropy.org/en/stable/coordinates/) | ||
- [astroquery](https://astroquery.readthedocs.io/en/latest/) | ||
|
||
- use [astropy.visualization](http://docs.astropy.org/en/stable/visualization/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where possible
- Roughly follow this progression: | ||
- Intput/Output: read in some data | ||
- use [astroquery](https://astroquery.readthedocs.io/en/latest/) where possible | ||
- Analysis: do something insightful/useful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vague?
CONTRIBUTING.md
Outdated
- Demonstrate best practices of variable names. | ||
- Variables should be all lower case with words separated by underscores. | ||
- Variable names should be descriptive. E.g., galaxy_mass, u_mag. | ||
- Use explicit print statements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the print function explicitly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(suggested wording)
CONTRIBUTING.md
Outdated
- Compile a list of the functions and packages the tutorial demonstartes and include a short a description with the pull request. | ||
Narrative: | ||
- Please read through the other tutorials to get a sense of the desired tone and length. | ||
- Use [Markdown formatting](http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html) in text cells for formatting, links, latex, and code snippets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Jupiter markdown formatting]
CONTRIBUTING.md
Outdated
Narrative: | ||
- Please read through the other tutorials to get a sense of the desired tone and length. | ||
- Use [Markdown formatting](http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html) in text cells for formatting, links, latex, and code snippets. | ||
- Title should be short and descrictive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "descriptive"
CONTRIBUTING.md
Outdated
- Please read through the other tutorials to get a sense of the desired tone and length. | ||
- Use [Markdown formatting](http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html) in text cells for formatting, links, latex, and code snippets. | ||
- Title should be short and descrictive | ||
- List all author's full names (comma separated) and link to github profile and/or ORCID id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONTRIBUTING.md
Outdated
- As much as possible, comply with [PEP8](https://www.python.org/dev/peps/pep-0008/) | ||
- Imports | ||
Do not import `*`. Import package and functions explicitly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is weird with the formatting. Use linebreak.
CONTRIBUTING.md
Outdated
import astropy.units as u | ||
import astropy.coordinates as coord | ||
from astropy.io import fits | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code block could use a small title. Perhaps Suggested import abbreviations
@kelle - Could you add a point about not including output and execution number in the notebooks? The current WIP ones are full of those. |
- Recommended import block and abbreviations | ||
```python | ||
import numpy as np | ||
import matplotlib as mpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also import matplotlib.pyplot as plt
I think we should also decide on the all imports at top vs imports inline, since there are also different opinions here and it would be good to be consistent either way. |
I removed a bunch of text and added links to more github help pages.
CONTRIBUTING.md
Outdated
Example, example, example | ||
|
||
## Companion Content | ||
Carroll & Ostlie 10.3, Binney & Tremian 1.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tremian -> Tremaine
CONTRIBUTING.md
Outdated
## Companion Content | ||
Carroll & Ostlie 10.3, Binney & Tremian 1.5 | ||
|
||
This tutorial goes from a downloading a data file, doing something to it, and visualizing it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"This tutorial goes from a downloading..." -> "This tutorial goes from downloading..."
CONTRIBUTING.md
Outdated
Remember to place any extra files | ||
used by the tutorial in the directory with the notebook file, and place them | ||
under git version control. | ||
notebook file itself -- should go in this directory. | ||
|
||
You will also need to edit the notebook file metadata. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually don't use the metadata anymore -- we should consider just asking the contributors to add this info to the first cell in a pre-formatted block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted for now. when we know what we want them to do, we can add the instructions.
CONTRIBUTING.md
Outdated
- date (month year, e.g. 'July 2013') | ||
|
||
Here is an example of one of these files: [FITS-header.ipynb](https://github.com/astropy/astropy-tutorials/blob/master/tutorials/FITS-header/FITS-header.ipynb) (be sure to hit the "raw" button to see the metadata). | ||
|
||
You will also need to specify any python packages that the tutorial depends on. | ||
Please specify any python packages that the tutorial depends on via the `requirements.json` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will change as well, but I'm fine leaving this & merging and then I can rebase my PR (#153) and update with the new info.
CONTRIBUTING.md
Outdated
Narrative: | ||
- Please read through the other tutorials to get a sense of the desired tone and length. | ||
- Use [Markdown formatting](http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html) in text cells for formatting, links, latex, and code snippets. | ||
- Title should be short and descrictive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"decrictive" -> "descriptive"
CONTRIBUTING.md
Outdated
- Please read through the other tutorials to get a sense of the desired tone and length. | ||
- Use [Markdown formatting](http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html) in text cells for formatting, links, latex, and code snippets. | ||
- Title should be short and descrictive | ||
- List all author's full names (comma separated) and link to github profile and/or [ORCID](https://github.com/astropy/astropy-tutorials/pull/171) id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to link to this PR for ORCID? also is "ORCID id" redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They call it an ORCID iD: https://orcid.org/register
I prefer imports at top |
I also prefer imports at the top. It promotes good coding practice and I like the foreshadowing. |
Ok, this looks better than what is there now, and I want to make this a part of the tutorials documentation page so I'm going to merge. Thanks @kelle! |
No description provided.