Skip to main content

pipeline for the analysis of joint MAGIC+LST-1 data

Project description

magic-cta-pipe GitHub Actions CI Status magic-cta-pipe PyPI Status magic-cta-pipe Conda Status magic-cta-pipe documentation Status pre-commit isort Status black

Repository for the analysis of MAGIC and MAGIC+LST1 data, based on ctapipe.

v0.6.0-alpha is based on ctapipe v0.25.x and cta-lstchain v0.11

v0.6.0-alpha is a magic-cta-pipe pre-release, first one that should be compatible with ctapipe 0.25. Note that calculation of some of the event parameters (leakage and height of the shower maximum) is different w.r.t. ctapipe 0.19, which means that one should not mix data and MCs processed with <=0.5 and >=0.6 versions of MCP

The last stable release, v0.5.6 of magic-cta-pipe provides all the functionalities to perform a MAGIC+LST-1 or a MAGIC-only analysis. Both types of analyses can be performed using the scripts within the lst1_magic folder. See here for more details on how to run the analysis.

NOTE ON OLD RELEASES

v0.3.1 of magic-cta-pipe was the last release before the cleanup of old files. Also, it was the last one supporting ctapipe v0.12. In order to exploit fully the new functionalities provided by ctapipe, use always the latest stable release of magic-cta-pipe (currently v0.5.6). v0.4.0 contained backward incompatible changes with respect to v0.3.1. Therefore, you cannot mix analyses performed with the two releases (and more recent ones).

COMPATIBILITY OF MAGIC-CTA-PIPE WITH LSTCHAIN DATA

At the moment of the release v0.4.0 of magic-cta-pipe, some LST-1 data were processed with cta-lstchain v0.9.x, while the most recent ones are processed with v0.10.x. v0.4.2 of magic-cta-pipe and more recent releases allow to read in LST data files created with both v0.9.x and v0.10.x, so that you do not need to use different versions of magic-cta-pipe to process LST data.

Note that there are quite a lot of differences between v0.3.1 and v0.4.x, like for the telescope combinations definition, the way IRF are created (due to different pyirf versions) and so on. Therefore it may not be straightforward to stack the data at high level. We recommend to use only releases more recent than v0.4.2 for the processing, so that there will be no mismatches during the analysis.

Installation for users

The very first step to reduce MAGIC-LST data is to have remote access/credentials to the IT Container. If you do not have it, please write an email to request it to <admin-ctan@cta-observatory.org>, and the admin will send you the instructions to connect to the IT container.

magic-cta-pipe and its dependencies may be installed using the Anaconda or Miniconda package system (if you have mamba installed, we recommend you to use it instead of conda, so that the installation process will be much faster; if you don’t have anaconda/miniconda/miniforge, please install one of them into your workspace directory). We recommend creating a conda virtual environment first, to isolate the installed version and dependencies from your master environment (this is optional).

Since version 0.5.1, magic-cta-pipe is on conda-forge (https://anaconda.org/conda-forge/magic-cta-pipe), which is the easiest way to install it.

To install into an exisiting environment, just do:

# or conda
$ mamba install -c conda-forge magic-cta-pipe

or, to create a new environment:

# or conda
mamba create -c conda-forge -n mcp python=3.11 magic-cta-pipe

Alternatively, the following command will set up a conda virtual environment, add the necessary package channels, and install magic-cta-pipe and its dependencies:

git clone https://github.com/cta-observatory/magic-cta-pipe.git
cd magic-cta-pipe
conda env create -n magic-lst -f environment.yml
conda activate magic-lst
pip install .

In general, magic-cta-pipe is still in heavy development phase, so expect large changes between different releases.

Instructions for developers

Developers should follow the development install instructions found in the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magic_cta_pipe-0.6.0a0.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magic_cta_pipe-0.6.0a0-py3-none-any.whl (172.2 kB view details)

Uploaded Python 3

File details

Details for the file magic_cta_pipe-0.6.0a0.tar.gz.

File metadata

  • Download URL: magic_cta_pipe-0.6.0a0.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for magic_cta_pipe-0.6.0a0.tar.gz
Algorithm Hash digest
SHA256 4916501787a767662bda8b2e115ef48f8cd66245340695f75295b17864940dc8
MD5 e874f20628318fda3a9657f1189f590a
BLAKE2b-256 a4399367a439bf8627e2e0e59f14351cca26c3329aa6eef5e44613634ee41c42

See more details on using hashes here.

File details

Details for the file magic_cta_pipe-0.6.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for magic_cta_pipe-0.6.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 d51e4108c8964f38f205c2d993644ee1ecb532fb75c50faf7cfe83953bd9e379
MD5 88cae27d36550ff2e06f4dfe49b1b4a0
BLAKE2b-256 4fba14615ec1cd3526bd365323f58101189f1e89a68ac538ed96a6e6686a6ed2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page