pyMARS is a python-based package under active development for IACT event analysis of the MAGIC telescopes. The purpose of this repo is to quickly and easily visualize and process the output of CTLearn using data from the MAGIC telescopes. pyMARS also supports MARS melibea files to directly compare DL2 and DL3 data. It is also planned to add an interface to pyIRF and gammaPy at least for the CTLearn chain (MARS anaylsis should be converted via the DL3 converter).
- Code : https://github.com/gae-ucm/pymars
- Author contact: Tjark Miener - tmiener@ucm.es
- License: GPL-3.0
Clone the pyMARS repository:
cd </installation/path>
git clone https://github.com/gae-ucm/pymarsNext, download and install Anaconda, or, for a minimal installation, Miniconda. Create a new conda environment that includes all the dependencies for LikelihoodCombiner:
conda env create -f </installation/path>/pymars/environment.ymlFinally, install pyMARS into the new conda environment with pip:
conda activate pymars
cd </installation/path>/pymars
pip install --upgrade .(Under construction) Or install pyMARS via pypi (tested for Linux users):
conda activate pymars
pip install pymarsNOTE for developers: If you wish to fork/clone the respository and make changes to any of the pyMARS modules, the package must be reinstalled for the changes to take effect.
(Under construction) To install it as a conda package, first install Anaconda by following the instructions here: https://www.anaconda.com/distribution/.
Then, create and enter a new Python3 environment with:
conda create -n [ENVIRONMENT_NAME]
conda activate [ENVIRONMENT_NAME]From the environment, add the necessary channels for all dependencies:
conda config --add channels conda-forge
conda config --add channels menpoInstall the package:
conda install -c tmiener pymarsThis should automatically install all dependencies (NOTE: this may take some time, as by default MKL is included as a dependency of NumPy and it is very large).
- astroPy
- ctaplot
- pyIRF (soon)
- gammaPy (soon)
- Python3
- Jupyter
- NumPy
- SciPy
- Pandas
- PyTables
- Matplotlib
Run pyMARS from the command line:
pymars-podie -hFirst, remove the conda environment in which LikelihoodCombiner is installed and all its dependencies:
conda remove --name pymars --allNext, completely remove pyMARS from your system:
rm -rf </installation/path>/pymars