Skip to main content

Python wrapper for DarkProp

Project description

license Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Python wrapper of DarkProp, a Monte Carlo simulation code for the propagation of dark matter particles in matter.

Installation

Install using pip

$ pip install --user darkprop

Tip

If there is a network problem during pip install, you can set up a mirror server. For example, using the Tsinghua mirror, add the -i option to the pip install command

$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple darkprop

Install from the source

If the pip installation fails, you can try to build from the source code.

  1. Download the source code from DarkProp's homepage.

  2. Install dependencies. Eigen 3, GSL, and SWIG are needed to build the Python wrapper. They can be installed, for example

    • Ubuntu >= 20.04

      $ sudo apt install g++ swig libeigen3-dev libgsl-dev
      
    • Fedora

      $ sudo dnf install g++ swig eigen3-devel gsl-devel
      

    Then prepare a python virtual environment and activate it.

    $ python3 -m venv venv
    $ source venv/bin/activate
    
  3. Build and install into the virtual environment. In the root directory of the source code, execute

    $ python3 -m pip install .
    

Example

Install Jupyter notebook and Matplotlib to run the example.

$ jupyter-notebook example/python/basic-example.ipynb

Citation

If you use darkprop in your publications, please cite the paper

  • C. Xia, Y.-H. Xu, and Y.-F. Zhou, Production and attenuation of cosmic-ray boosted dark matter, arXiv: 2111.05559

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

darkprop-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

darkprop-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

darkprop-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

darkprop-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

darkprop-0.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

Details for the file darkprop-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for darkprop-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76d2fe79f1c38c2f7d7e5371f3bac93b1306a86dcb78ebf6467ed08d88503132
MD5 4740bd1f27450fe0065f5ba1c6d19604
BLAKE2b-256 6fb7542bb7dab8c7f2cd3e0406fe8702282baeb3cbcffe15eb644ce264537909

See more details on using hashes here.

File details

Details for the file darkprop-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for darkprop-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7086746d2ef4cb4c09a92a442b898baaf138393e373f83e7643123b604d0fbc
MD5 f23dda91d72d0c0a268e47927282d2b3
BLAKE2b-256 29da0380d393cf445b7590e9383e823b6624f939d696eb0c715c1e41c361fdac

See more details on using hashes here.

File details

Details for the file darkprop-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for darkprop-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c93fc59879d14af02d765c633fd5d9eb484e0df7bd5efc6cb9ec26eb47d9f8f2
MD5 5f0f8e733dffaad6fc9f168e3d2a1399
BLAKE2b-256 d48524fbe8eda02655cfee9c765c0ed3f728d01f32b65de3ebfe0519dd4a1461

See more details on using hashes here.

File details

Details for the file darkprop-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for darkprop-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9dd3168ddcd3a39c8a6c540e15052395349546a761e97bf007f619c091a81db3
MD5 78345c69c44294567c88b2cee494f4fc
BLAKE2b-256 ef44026f30d49351473210ac6477054d05e7197612face74aa40c49e400bebfa

See more details on using hashes here.

File details

Details for the file darkprop-0.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for darkprop-0.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1da166a87d4f16578827340e8797b92d6d70aecfcf412dea748bc89fe76de90d
MD5 f7b6e0ed3b2b56b79516a73a2493aab5
BLAKE2b-256 3a5ada96cb0b39e4ca467503140a326f1f5bca16f0a1ce1afb81bac1e371c8db

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