Skip to main content

Cosmic ray PRopagation Including Nuclear Cascade equations

Project description

PriNCe - Propagation including Nuclear Cascade equations

Documentation Status

This code is written to solve the transport equation for ultra-high energy cosmic rays on cosmological scales.

Development status

Although the code is numerically accurate for its main purpose (UHECR propagation), one should consider it as early alpha, simply because so far only us (the devs) have been using it and the interfaces aren't sufficiently polished to be used error-free for tasks that we didn't foresee. Please file issues for anything strange, unclear, wrong, etc.. It will help us to debug the code and simplify the user interface.

Data and other requirements

The code requires data files which are not contained in the repository. You need to manually download the tarball from the latest release and unpack it to ./data.

We are planning to make this download automatic in a future release.

Documentation

Uses sphinx-docs, which can be read at readthedocs

The documentation is still incomplete. Feedback/comments are welcome via issues.

System requirements

  • ~16GB RAM
  • several GB disk space

Software requirements

The code is pure Python heavily using vectorization via numpy/scipy.

Dependencies (list might be incomplete):

  • python-3.7 or later
  • numpy
  • scipy
  • matplotlib
  • tqdm
  • jupyter (optional, but needed for examples)

Optional:

  • mkl (Intel's MKL runtime from pip/anaconda works)
  • cupy (For GPU acceleration with CUDA. Support is experimental and memory requirements are not yet understood.)

Installation

Since this code is written in pure Python 3, it requries no installation. All you need is a python distribution including pip. For scientific computing Anaconda/Miniconda is a good choice.

Simply git clone (or manually download) this repository and link it using pip:

git clone https://github.com/joheinze/PriNCe
pip install -e PriNCe

with the option -e (or --editable) this will link the local foulder to your pip installation, such that any local code edits will take effect. Use this for testing and development.

To test an installation:

pip install pytest
python -m pytest --pyargs prince_cr

This will automatically install the dependencies. If you do not want to use pip you can also just add this folder to your PYTHONPATH.

Examples

Examples are separately maintained: Examples repository

Citation

If you are using this code in your work, please cite:

A new view on Auger data and cosmogenic neutrinos in light of different nuclear disintegration and air-shower models
J. Heinze, A. Fedynitch, D. Boncioli and W. Winter
Astrophys.J. 873 (2019) no.1, 88
doi: 10.3847/1538-4357/ab05ce

Contributors

  • Anatoli Fedynitch
  • Jonas Heinze

Copyright and license

Code released under the BSD 3-clause license (see LICENSE).

Acknowledgements

This code has been initially developed as part of the NEUCOS project and has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant No. 646623).

Project details


Download files

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

Source Distribution

prince_cr-0.5.1.tar.gz (77.9 kB view details)

Uploaded Source

Built Distribution

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

prince_cr-0.5.1-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

File details

Details for the file prince_cr-0.5.1.tar.gz.

File metadata

  • Download URL: prince_cr-0.5.1.tar.gz
  • Upload date:
  • Size: 77.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for prince_cr-0.5.1.tar.gz
Algorithm Hash digest
SHA256 69136bb5af2a22b7fafc9344a8283047eba2bed4414c4a9d621bd4bd3a78fae3
MD5 ee0bfc0b69311194aa79e6ff3c88470d
BLAKE2b-256 2fa116af4bb559625925a254a61318bec8d60dd84cf56d1337e2f1c3d4c75b2f

See more details on using hashes here.

File details

Details for the file prince_cr-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: prince_cr-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 85.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for prince_cr-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6eaee9886585ccf37c78298efc9ebe1f46953e9e39fbf84b642de9846b7866af
MD5 1ed7d7f2538fee2cf6b9b50527adfb5c
BLAKE2b-256 94cdba8151874bd42c4299cde08cc72f657b704648e03921cb3ef6c84eecaa0e

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