Python wrapper for DarkProp
Project description
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.
-
Download the source code from DarkProp's homepage.
-
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
-
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file darkprop-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: darkprop-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d2fe79f1c38c2f7d7e5371f3bac93b1306a86dcb78ebf6467ed08d88503132
|
|
| MD5 |
4740bd1f27450fe0065f5ba1c6d19604
|
|
| BLAKE2b-256 |
6fb7542bb7dab8c7f2cd3e0406fe8702282baeb3cbcffe15eb644ce264537909
|
File details
Details for the file darkprop-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: darkprop-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7086746d2ef4cb4c09a92a442b898baaf138393e373f83e7643123b604d0fbc
|
|
| MD5 |
f23dda91d72d0c0a268e47927282d2b3
|
|
| BLAKE2b-256 |
29da0380d393cf445b7590e9383e823b6624f939d696eb0c715c1e41c361fdac
|
File details
Details for the file darkprop-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: darkprop-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c93fc59879d14af02d765c633fd5d9eb484e0df7bd5efc6cb9ec26eb47d9f8f2
|
|
| MD5 |
5f0f8e733dffaad6fc9f168e3d2a1399
|
|
| BLAKE2b-256 |
d48524fbe8eda02655cfee9c765c0ed3f728d01f32b65de3ebfe0519dd4a1461
|
File details
Details for the file darkprop-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: darkprop-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dd3168ddcd3a39c8a6c540e15052395349546a761e97bf007f619c091a81db3
|
|
| MD5 |
78345c69c44294567c88b2cee494f4fc
|
|
| BLAKE2b-256 |
ef44026f30d49351473210ac6477054d05e7197612face74aa40c49e400bebfa
|
File details
Details for the file darkprop-0.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: darkprop-0.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1da166a87d4f16578827340e8797b92d6d70aecfcf412dea748bc89fe76de90d
|
|
| MD5 |
f7b6e0ed3b2b56b79516a73a2493aab5
|
|
| BLAKE2b-256 |
3a5ada96cb0b39e4ca467503140a326f1f5bca16f0a1ce1afb81bac1e371c8db
|