Skip to content

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

Merged
merged 7 commits into from
Nov 17, 2017
Merged

Updates to Content Guidelines #171

merged 7 commits into from
Nov 17, 2017

Conversation

kelle
Copy link
Member

@kelle kelle commented Sep 29, 2017

No description provided.

@kelle kelle requested a review from eblur September 29, 2017 18:33
Copy link
Contributor

@eblur eblur left a 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/)
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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

Copy link
Contributor

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

@bsipocz
Copy link
Contributor

bsipocz commented Sep 29, 2017

@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
Copy link
Contributor

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

@astrofrog
Copy link
Contributor

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.

kelle added 2 commits October 1, 2017 16:09
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
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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?

Copy link
Member Author

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.
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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?

Copy link
Member Author

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

@adrn
Copy link
Contributor

adrn commented Oct 3, 2017

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 prefer imports at top

@kelle
Copy link
Member Author

kelle commented Oct 3, 2017

I also prefer imports at the top. It promotes good coding practice and I like the foreshadowing.

@adrn
Copy link
Contributor

adrn commented Nov 17, 2017

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!

@adrn adrn merged commit 910cc51 into master Nov 17, 2017
@eteq eteq deleted the kelle-contributing-update branch March 7, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants