Skip to main content

LikelihoodCombiner combines DM-related likelihoods from different experiments.

Project description

DOI https://travis-ci.com/TjarkMiener/likelihood_combiner.svg?branch=master Documentation Status Anaconda-Server Badge Latest Release Anaconda-Server Badge
Gloryduck logo

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 Repository with Git

Clone the LikelihoodCombiner repository:

cd </installation/path>
git clone https://github.com/TjarkMiener/likelihood_combiner

Install Package with Anaconda/pypi

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 .

Or install LikelihoodCombiner via pypi (tested for Linux users):

conda activate lklcom
pip install lklcom

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.

Installing as a conda package

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 menpo

Install the package:

conda install -c tmiener likelihood_combiner

This 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).

If you want to import any functionality from LikelihoodCombiner into your own Python scripts, then you are all set. However, if you wish to make use of any of the scripts in likelihood_combiner/scripts (like {local/cluster}.py), you should also clone the repository locally and checkout the corresponding tag (i.e. for version v0.5.2):

git clone https://github.com/TjarkMiener/likelihood_combiner
git checkout v0.5.2

LikelihoodCombiner should already have been installed in your environment by Conda, so no further installation steps (i.e. with setuptools or pip) are necessary and you should be able to run scripts/{local/cluster}.py directly.

Dependencies

  • Python3

  • Jupyter

  • NumPy

  • SciPy

  • Pandas

  • PyTables

  • PyYAML

  • Matplotlib

Run the Combiner

Run LikelihoodCombiner from the command line:

LikelihoodCombiner_dir=</installation/path>/likelihood_combiner
python $LikelihoodCombiner_dir/scripts/{local|cluster}.py $LikelihoodCombiner_dir/config/example_config.yml

Mock data

The data you can find in the LikelihoodCombiner, where produced with gLike using the mock data. These txt files don’t correspond to IACT observations of Segue 1 or Ursa Major II and are only included for testing the code framework.

Uninstall LikelihoodCombiner

Remove Anaconda Environment

First, remove the conda environment in which LikelihoodCombiner is installed and all its dependencies:

conda remove --name lklcom --all

Remove LikelihoodCombiner

Next, completely remove LikelihoodCombiner from your system:

rm -rf </installation/path>/likelihood_combiner

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

lklcom-0.5.3.tar.gz (123.2 kB view details)

Uploaded Source

File details

Details for the file lklcom-0.5.3.tar.gz.

File metadata

  • Download URL: lklcom-0.5.3.tar.gz
  • Upload date:
  • Size: 123.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for lklcom-0.5.3.tar.gz
Algorithm Hash digest
SHA256 ab9b55f6a8aa0c97625cdeb42002c2a044fe073a37d903d084a20551e0822b14
MD5 9dfb4d9fd1f6094ffec112671bf15163
BLAKE2b-256 15b401384f59ede6b016d073ceab08d4df37864a7ec79ee25134abe4bd16d6e5

See more details on using hashes here.

Supported by

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