Giter VIP home page Giter VIP logo

gammapy-paris-tutorial's Introduction

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

gammapy-paris-tutorial's People

Contributors

cdeil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.