Sign inSign up

zimmerst85/clumpy

By zimmerst85

Updated almost 8 years ago

CLUMPY is dedicated to the calculation of J-factors

Image
1

10K+

zimmerst85/clumpy repository overview

clumpy-docker

clumpy docker container, see https://clumpy.gitlab.io/CLUMPY/index.html for full description

Installation:

follow the instructions to install docker on your host machine (Unix/Mac/Windows) and pull the container from the dockerhub repository

test zimmer$ docker pull zimmerst85/clumpy
Using default tag: latest
latest: Pulling from zimmerst85/clumpy
[...]
Status: Downloaded newer image for zimmerst85/clumpy:latest

Verify that the image is indeed in your list of docker images:

(python2) StephansMBP:test zimmer$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
zimmerst85/clumpy   latest              64ad415f5daf        46 hours ago        1.89GB
centos              latest              49f7960eb7e4        4 weeks ago         200MB

You can start the container by simply typing:

docker run -it --rm -v $PWD:/work -w /work zimmerst85/clumpy

which will start the container and ssh into it, binding the current directory to /work and changing into said directory.

Clumpy is directly available:

[root@87a5422b7faf work]# clumpy
 _____________________________________________________________  ___  __________
|   _       o     _____  _       _    _  __  __  _____ __ .    /   \       .   |
|  (_)   .       / ____|| |  o  | |  | ||  \/  ||  __ \\ \   /(     )          |
|            .  | |   . | |     | |  | || \  / || |__) |\ \_/ /\___/     o     |
| .             | |     | |   . | |  | || |\/| ||  ___/  \   /       .         |
|    __   o     | |____ | |____ | |__| || |  | || |     . | |     o         .  |
|   /  \       . \_____||______| \____/ |_|  |_||_|  o    |_|    .         _   |
|   \__/                                                               .  (_)  |
|               v3.0, git-ID 39070bd (15 commits after last tag)               |
|______________________________________________________________________________|

  Incomplete or wrong command line input - mind the correct usage:
     clumpy -g  => run on the Galactic halo only + list of halos [optional]
     clumpy -h  => run on (a list of) halos (not the Gal. halo)
     clumpy -e  => run on extragalactic DM
     clumpy -s  => run on statistical-like file (or on a list of files)
     clumpy -o  => export the output FITS file into a different format
     clumpy -z  => gamma and neutrino spectra
     clumpy -f  => append extension with fluxmaps to existing FITS file

NOTE: clumpy batch mode:

see here calling clumpy with -p will run stuff in batch mode, thus no need for X11 forwarding (as described below)

NOTE: X11 forwarding

Ordinarily, the container will not perform any X11 forwarding. In order to enable this, follow these instructions

and start the container with the $DISPLAY variable explicitly set (below is for MacOSX):

docker run -it --rm -e DISPLAY=docker.for.mac.localhost:0 -v $PWD:/work -w /work zimmerst85/clumpy

Linux users should be able to run the code similarly by exporting the Display variable

export DISPLAY=${DISPLAY} docker run -it --rm -e DISPLAY=${DISPLAY} -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/work -w /work zimmerst85/clumpy

NOTE: latest vs. latest-full

latest contains a minimal clumpy build, whereas latest-full comes with CLASS & GreAT installed as well. Note that for latest-full the shipped ROOT version is 5.34.36 (GreAT incompatibility)

Tag summary

Content type

Image

Digest

Size

855.4 MB

Last updated

about 8 years ago

docker pull zimmerst85/clumpy