https://github.com/bmorris3/python-workshop-exeter-2019

Python tutorials for the University of Exeter; Thursday, Oct 10, 2019

https://github.com/bmorris3/python-workshop-exeter-2019

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, joss.theoj.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Python tutorials for the University of Exeter; Thursday, Oct 10, 2019

Basic Info
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 6 years ago · Last pushed over 6 years ago

https://github.com/bmorris3/python-workshop-exeter-2019/blob/master/

# Python for Astronomy Tutorial
### Instructor: [Brett Morris](http://brettmorr.is)

Thursday, October 10, 2019

Harrison 170

University of Exeter

#### Rough Schedule

| Lesson | Time |
|--------|------|
| Intro to HDF5 | 9:30-10:00 | 
| [Packaging tutorial](https://gist.github.com/bmorris3/4221e471f8a448560eb7e76ef78bda83) | 10:00-12:30 | 

#### Setup 

If you're a `conda` user, simply type: 

```
conda install numpy scipy astropy matplotlib h5py 
conda install -c conda-forge jupyterlab
```

If you prefer `pip`, type: 

```
pip install numpy scipy astropy matplotlib h5py jupyterlab
```

#### Further reading

For additional resources on getting up to speed in Python, I highly recommend Jake Van der Plas' book _A Whirlwind Tour of Python_, which is [currently available for free](http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.pdf). If you're ready to go deeper, there are [many freely available books on Python to try](http://pythonbooks.revolunet.com).

# Python Packaging Tutorial

Example repo: [`leonard`](https://github.com/bmorris3/leonard)

### Packaging references

* [**astropy package-template tutorial**](http://docs.astropy.org/projects/package-template/en/latest/)
* [Simplified project structure reference](http://docs.python-guide.org/en/latest/writing/structure/)
* [Python 3 official packaging reference](https://docs.python.org/3/tutorial/modules.html#packages)
* [reStructuredText cheat sheet](http://www.sphinx-doc.org/en/stable/rest.html) for Sphinx documentation
* [Reference on 2->3 compatibility](http://python-future.org/compatible_idioms.html#essential-syntax-differences) 

### astropy-related FAQ
* What's an [astropy-affiliated package?](http://www.astropy.org/affiliated/)
* How can I make my code style look more legit? See: [astropy's Coding Guidelines](http://docs.astropy.org/en/stable/development/codeguide.html)
* How does the testing machinery work? See: [astropy's Testing Guidelines](http://docs.astropy.org/en/stable/development/testguide.html)
* How do I make the best use of git for my project? See: [astropy's Workflow for Maintainers](http://docs.astropy.org/en/stable/development/workflow/maintainer_workflow.html)
* How do I make the most of my documentation? See: [astropy's Writing Documentation](http://docs.astropy.org/en/stable/development/docguide.html)

### Next steps
* Make your code citable by minting a [Zenodo DOI for your GitHub repository](https://guides.github.com/activities/citable-code/)
* Consider submitting your software to the [Journal of Open Source Software](http://joss.theoj.org/) ([example 1](https://joss.theoj.org/papers/10.21105/joss.00854), [example 2](https://joss.theoj.org/papers/10.21105/joss.01130))
* Make your code conda-installable with a few relatively simple steps with [conda-forge](https://conda-forge.github.io)

### General style tips
* [Good Enough Practices in Scientific Computing](https://arxiv.org/abs/1609.00037)

Owner

  • Name: Brett M. Morris
  • Login: bmorris3
  • Kind: user
  • Location: Baltimore, MD
  • Company: @SpaceTelescope

Software engineer & astronomer.

GitHub Events

Total
Last Year