Skip to main content

LikelihoodCombiner combines DM-related likelihoods from different experiments.

Project description

DOI Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge 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.

Install LikelihoodCombiner

Clone Repository with Git

Clone the LikelihoodCombiner repository:

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

Install Package with Anaconda

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.

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 Python 3.8 environment with:

conda create -n [ENVIRONMENT_NAME] python=3.8
source 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.4.1):

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

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

  • Python 3.8.X

  • 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.4.1.post30.tar.gz (118.4 kB view details)

Uploaded Source

Built Distributions

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

lklcom-0.4.1.post30-py3.9.egg (155.7 kB view details)

Uploaded Egg

lklcom-0.4.1.post30-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file lklcom-0.4.1.post30.tar.gz.

File metadata

  • Download URL: lklcom-0.4.1.post30.tar.gz
  • Upload date:
  • Size: 118.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lklcom-0.4.1.post30.tar.gz
Algorithm Hash digest
SHA256 9e088a330c0f4e24698a8c9c1cba7869b4a1cb761e4e6e880953cd90392a12e3
MD5 c14fea61ae2045324f60538449beb87a
BLAKE2b-256 f66958327257dd90d9ae0719cb17e5ff381bdd140b9d700f38fec2074e73a192

See more details on using hashes here.

File details

Details for the file lklcom-0.4.1.post30-py3.9.egg.

File metadata

  • Download URL: lklcom-0.4.1.post30-py3.9.egg
  • Upload date:
  • Size: 155.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lklcom-0.4.1.post30-py3.9.egg
Algorithm Hash digest
SHA256 291d7cec0e2f066770d1260b752197c5385d68e0b9cda0d1ae1308e6ef04ae6d
MD5 815463c78c70e39c9439c7d6f8baa528
BLAKE2b-256 98cd309ad0fd1bf914f35242892abd78d0084b887a1e4d5d5fb5bff27470f45e

See more details on using hashes here.

File details

Details for the file lklcom-0.4.1.post30-py3-none-any.whl.

File metadata

  • Download URL: lklcom-0.4.1.post30-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lklcom-0.4.1.post30-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d7bb3ba4bf15c878527cb27d20207ec5425b235f82834750910c989feb460b
MD5 0bce87e86a7cd2f53aa1455598e4c61f
BLAKE2b-256 60c89987d756e34315f39516949d620459e4cd099d95ea3a02a76853f2d359ac

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