Coder Social home page Coder Social logo

justuszorn / pyhessio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cta-observatory/pyhessio

0.0 2.0 0.0 505 KB

Anaconda version of CTA Python wrapper for hessio event format that is used in output of simtel_array.

CMake 0.14% Shell 0.01% C++ 14.65% C 82.92% Python 2.28%

pyhessio's Introduction

pyhessioxxx

CTA Python wrapper for hessio event format that is used in output of simtel_array.

This is a temporaly solution for testing ctapipe with real CTA MC data. It should not be used once CTA data format DL0 will be accpeted and implemented.

This package is composed of two libraries:

Quick Start

Anaconda

First install Anaconda python distribution for Python3.4 http://continuum.io/downloads#py34

If you already use anaconda, but with python 2.7, you can create a second anaconda virtual environment for python3 following the instructions here: http://continuum.io/blog/anaconda-python-3):

# only if you already run anaconda: install a new virtualenv for
# cta development:
conda create -n cta python=3.4 anaconda
source activate cta  # to switch to the cta python virtualenv

later you can switch back to your the root environment (or another) by running:

source activate root  

Anaconda's distribution doesn't interfere with your local python distribution if you have one, and can be installed without root privileges. It contains all the required packages. To "activate" Anaconda's python, just put it's bin directory in your path: (e.g. export PATH=$HOME/anaconda/bin:$PATH).

After installing anaconda and setting your PATH, run the following to update the packages (for now we have no version restrictions, so the latest ones usually work):

conda update --all

CMake

You need to install CMake to build C libhessio library

https://cmake.org

build and install

Installation thanks to anaconda:

Note: if you do not used a local installation of Anaconda, you need root access on your system :

git clone https://github.com/cta-observatory/pyhessio
conda build pyhessio
conda install --use-local pyhessio
cd pyhessio
python setup.py develop

Local installation without anaconda

Note: Use this procedure if you do not have an local installation of anaconda or no root access on your system :

git clone https://github.com/cta-observatory/pyhessio
cd pyhessio
mkdir build_cmake
cd build_cmake
cmake .. -DCMAKE_INSTALL_PREFIX=/home1/jacquem/.local
make install
cd ..
python setup.py install --user --hessio_prefix=/home1/jacquem/.local/lib
python setup.py develop

Datasets

To keep the pyhessio code repo small, we have decided to put the example files used for unit tests in a separate repo: https://github.com/cta-observatory/pyhessio-extra :

git submodule init
git submodule update

pyhessio's People

Contributors

elehcim avatar jacquemier avatar

Watchers

 avatar  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.