Skip to main content
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

Release files for lklcom 0.4.1.post28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lklcom 0.4.1.post28
File Size Uploaded
lklcom-0.4.1.post28.tar.gz 118.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for lklcom 0.4.1.post28
File Interpreter ABI Platform
lklcom-0.4.1.post28-py3.9.egg Legacy Egg format - - Details
lklcom-0.4.1.post28-py3-none-any.whl Python 3 none any Details

Total release size: 191.2 kB

Release files / lklcom-0.4.1.post28.tar.gz

Download URL lklcom-0.4.1.post28.tar.gz
Size 118.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aef77221a0db0c66f6719e5570e9df7c3f661d16ddc045f696a4b7babe5af44c
BLAKE2b-256 checksum
How to use checksums
dcc955f78b80f29e4093baa534de05a0bacea71e7da4a613829c2d399a3274f4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lklcom-0.4.1.post28-py3.9.egg

Download URL lklcom-0.4.1.post28-py3.9.egg
Size 41.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
3c6f20ba6482bb92a2b8481b029b308ff9369695d667b246132af91670452a7c
BLAKE2b-256 checksum
How to use checksums
821b9846409fdf8dc410a85408881b1973ec7fbaa6e5433af41c226ff8ee08d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lklcom-0.4.1.post28-py3-none-any.whl

Download URL lklcom-0.4.1.post28-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f64f887b98512cbf2417bfab4f78e7989487bb1a1c934be8444c46ef1917a2a
BLAKE2b-256 checksum
How to use checksums
173335ea3d1df8340586fc76c70aaa683ac3552db82927e1d487e3e7516f12ce
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page