Git Product home page Git Product logo

cta-lstchain's Introduction

cta-lstchain Build Status

Repository for the high level analysis of the LST. The analysis is heavily based on ctapipe, adding custom code for mono reconstruction.

Note that notebooks are currently not tested and not guaranteed to be up-to-date.
In doubt, refer to tested code and scripts: basic functions of lstchain (reduction steps R0-->DL1 and DL1-->DL2) are unit tested and should be working as long as the build status is passing.

Install

As user

LSTCHAIN_VER=0.9.6  (or the version you want to install - usually the latest release)
wget https://raw.githubusercontent.com/cta-observatory/cta-lstchain/v$LSTCHAIN_VER/environment.yml
conda env create -n lst -f environment.yml
conda activate lst
pip install lstchain==$LSTCHAIN_VER
rm environment.yml

As developer

  • Create and activate the conda environment:
git clone https://github.com/cta-observatory/cta-lstchain.git
cd cta-lstchain
conda env create -f environment.yml
conda activate lst-dev

Note: To prevent packages you installed with pip install --user from taking precedence over the conda environment, run:

conda env config vars set PYTHONNOUSERSITE=1 -n <environment_name>

To update the environment (e.g. when depenencies got updated), use:

conda env update -n lst-dev -f environment.yml
  • Install lstchain in developer mode:
pip install -e .

To run some of the tests, some non-public test data files are needed. These tests will not be run locally if the test data is not available, but are always run in the CI.

To download the test files locally, run ./download_test_data.sh. It will ask for username and password and requires wget to be installed. Ask one of the project maintainers for the credentials. If you are a member of the LST collaboration you can also obtain them here:

https://ctaoobservatory.sharepoint.com/:i:/r/sites/ctan-onsite-it/Shared%20Documents/General/information_2.jpg?csf=1&web=1&e=suUkV6

To run the tests that need those private data file, add -m private_data to the pytest call, e.g.:

pytest -m private_data -v lstchain

To run all tests, run

pytest -m 'private_data or not private_data' -v lstchain

Contributing

All contribution are welcomed.

Guidelines are the same as ctapipe's ones
See here for the general guidelines on how to make a pull request to contribute to the repository. Since the addition of the private data, the CI tests for Pull Requests from forks are not working, therefore we would like to ask to push your modified branches directly to the main cta-lstchain repo. If you do not have writing permissions in the repo, please contact one of the main developers.

Report issue / Ask a question

Use GitHub Issues.

cta-lstchain's People

Contributors

rlopezcoto avatar vuillaut avatar moralejo avatar francacassol avatar maxnoe avatar morcuended avatar chaimain avatar misabelber avatar seiyanozaki avatar pawel21 avatar bultako avatar mexanick avatar yrenier avatar labsaha avatar calispac avatar pillera avatar andres-baquero avatar jsitarek avatar aaguasca avatar mari-taka avatar sn621 avatar yiwamura 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.