LikelihoodCombiner is a package under active development to combine likelihoods from different experiments. The main target of this package is the Gloryduck project. This project joint analysis of gamma-ray data from Fermi-LAT, HAWC, H.E.S.S., MAGIC and VERITAS to search for gamma-ray signals from dark matter annihilation in dwarf satellite galaxies.
Clone the LikelihoodCombiner repository:
cd </installation/path>
git clone https://github.com/TjarkMiener/likelihood_combiner
Next, 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>/likelihood_combiner/environment.yml
Finally, install LikelihoodCombiner into the new conda environment with pip:
conda activate lklcom
cd </installation/path>/likelihood_combiner
pip install --upgrade .
NOTE for developers: If you wish to fork/clone the respository and make changes to any of the LikelihoodCombiner modules, the package must be reinstalled for the changes to take effect.
- Python 3.7.3
- NumPy
- SciPy
- PyTables
- PyYAML
- Matplotlib
Run LikelihoodCombiner from the command line:
LikelihoodCombiner_dir=</installation/path>/likelihood_combiner
python $LikelihoodCombiner_dir/likelihood_combiner/combiner.py $LikelihoodCombiner_dir/config/config.yml
Alternatively, import LikelihoodCombiner as a module in a Python script:
import yaml
from likelihood_combiner.combiner import run_combiner
with open('</installation/path>/config/config.yml', 'r') as myconfig:
config = yaml.load(myconfig)
run_combiner(config)
First, remove the conda environment in which LikelihoodCombiner is installed and all its dependencies:
conda remove --name lklcom --all
Next, completely remove LikelihoodCombiner from your system:
rm -rf </installation/path>/likelihood_combiner