Package: lklcom
LikelihoodCombineris a package under active development to combine likelihoods from different experiments. The main target of this package is theGloryduckproject. This project joint analysis of gamma-ray data from*Fermi*-LAT,HAWC,H.E.S.S.,MAGICandVERITASto search for gamma-ray signals from dark matter annihilation in dwarf satellite galaxies.Code :https://github.com/TjarkMiener/likelihood_combinerDocumentation :https://lklcom.readthedocs.io/en/latest/Author contact: Tjark Miener -tmiener@ucm.esLicense: GPL-3.0Clone Repository with GitClone the LikelihoodCombiner repository:cd</installation/path>gitclonehttps://github.com/TjarkMiener/likelihood_combinerInstall Package with Anaconda/pypiNext, download and installAnaconda, or, for a minimal installation,Miniconda. Create a new conda environment that includes all the dependencies for LikelihoodCombiner:condaenvcreate-f</installation/path>/likelihood_combiner/environment.ymlFinally, install LikelihoodCombiner into the new conda environment with pip:condaactivatelklcomcd</installation/path>/likelihood_combinerpipinstall--upgrade.Or install LikelihoodCombiner via pypi (tested for Linux users):condaactivatelklcompipinstalllklcomNOTE 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 packageTo 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:condacreate-n[ENVIRONMENT_NAME]condaactivate[ENVIRONMENT_NAME]From the environment, add the necessary channels for all dependencies:condaconfig--addchannelsconda-forgecondaconfig--addchannelsmenpoInstall the package:condainstall-ctmienerlikelihood_combinerThis 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):gitclonehttps://github.com/TjarkMiener/likelihood_combinergitcheckoutv0.5.2LikelihoodCombiner 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.DependenciesPython3JupyterNumPySciPyPandasPyTablesPyYAMLMatplotlibRun the CombinerRun LikelihoodCombiner from the command line:LikelihoodCombiner_dir=</installation/path>/likelihood_combinerpython$LikelihoodCombiner_dir/scripts/{local|cluster}.py$LikelihoodCombiner_dir/config/example_config.ymlMock dataThe data you can find in the LikelihoodCombiner, where produced withgLikeusing themock data. These txt filesdon’tcorrespond to IACT observations of Segue 1 or Ursa Major II and are only included for testing the code framework.Uninstall LikelihoodCombinerRemove Anaconda EnvironmentFirst, remove the conda environment in which LikelihoodCombiner is installed and all its dependencies:condaremove--namelklcom--allRemove LikelihoodCombinerNext, completely remove LikelihoodCombiner from your system:rm-rf</installation/path>/likelihood_combiner