https://github.com/cdeil/gammapy-paris-tutorial
Tutorial repo for Gammapy Paris workshop, Feb 2017
https://github.com/cdeil/gammapy-paris-tutorial
Last synced: about 1 year ago
JSON representation
Tutorial repo for Gammapy Paris workshop, Feb 2017
- Host: GitHub
- URL: https://github.com/cdeil/gammapy-paris-tutorial
- Owner: cdeil
- Created: 2017-02-22T09:42:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T16:37:29.000Z (over 9 years ago)
- Last Synced: 2025-02-08T16:41:30.533Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gammapy-paris-tutorial
Tutorial repo for Gammapy Paris workshop, Feb 2017
What should we do?
## Brief overview for Gammapy repo
* Overview of code, tests, docs in Gammapy
* Use PointingInfo class as an example
## How to hack on Gammapy
* In Gammapy, everything works the same as in Astropy.
We don't have a lot of written docs for contributors,
but they have a ton: http://astropy.readthedocs.io/en/latest/
* Know which version of Gammapy are you running.
* `python setup.py build`
* `python setup.py install`
* `pip install .`
* `python setup.py build_ext --inplace`
* `python setup.py develop`
* `pip install --editable .`
* Run tests:
* `python setup.py test`
* `python -m pytest`
* Build docs locally:
* `python setup.py build_docs`
* `open docs/_build/html/index.html`
* Look at one pull request, travis-ci
## Exercises
### Coding
* Python coding exercise & testing with pytest.org
* Test-driven development -- let's write a `Point` class
### Make a pull request
* Working with git locally
* `git clone`
* `git pull`
* `git status`
* `git branch`
* `git checkout`
* `git commit`
* Forking a repo, making a pull request
* Make a branch
* Make a commit
* Fork via Github website
* `git remote -v`
* `git push`
* Make pull request via Github website