ACROPOLIS


NameACROPOLIS JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://acropolis.hepforge.org
SummaryA generiC fRamework fOr Photodisintegration Of LIght elementS
upload_time2024-09-24 10:49:31
maintainerNone
docs_urlNone
authorPaul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg
requires_python>=3.6
licenseGPL3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ACROPOLIS

**A** generi**C** f**R**amework f**O**r **P**hotodisintegration **O**f **LI**ght element**S**

![arXiv: 2011.06518](https://img.shields.io/badge/arXiv-2011.06518-red.svg?style=flat-square)
![Language: Python3](https://img.shields.io/badge/Language-Python3-blue.svg?style=flat-square)
![Version: 1.3.0](https://img.shields.io/badge/Current_Version-1.3.0-green.svg?style=flat-square)
![DevVersion: 2.0.0](https://img.shields.io/badge/Current_Dev_Version-2.0.0-orange.svg?style=flat-square)

<img src="https://acropolis.hepforge.org/ACROPOLIS.png" alt="logo" width="600"/><br />
When using this code for your own scientific publications, please cite

- **ACROPOLIS: A generiC fRamework fOr Photodisintegration Of LIght elementS**\
  Paul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg\
  https://arxiv.org/abs/2011.06518
- **Updated BBN constraints on electromagnetic decays of MeV-scale particles**\
  Paul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg\
  https://arxiv.org/abs/2011.06519
- **BBN constraints on MeV-scale dark sectors. Part II. Electromagnetic decays**\
  Marco Hufnagel, Kai Schmidt-Hoberg, Sebastian Wild\
  https://arxiv.org/abs/1808.09324

<!--*The most recent version of the manual can always be found on GitHub in the manual/ folder. The respective publication on arXiv might be out-of-date, especially when new versions of the code become available.*-->

# Abstract

The remarkable agreement between observations of the primordial light element abundances and the corresponding theoretical predictions within the standard cosmological history provides a powerful method to constrain physics beyond the standard model of particle physics (BSM). For a given BSM model these primordial element abundances are generally determined by (i) Big Bang Nucleosynthesis and (ii) possible subsequent disintegration processes. The latter potentially change the abundance values due to late-time high-energy injections which may be present in these scenarios. While there are a number of public codes for the first part, no such code is currently available for the second. Here we close this gap and present ACROPOLIS, A generiC fRamework fOr Photodisintegration Of LIght elementS. The widely discussed cases of decays as well as annihilations can be run without prior coding knowledge within example programs. Furthermore, due to its modular structure, ACROPOLIS can easily be extended also to other scenarios.

# Changelog

<details open>
<summary>v1.3.0 (September 17, 2024)</summary>

- Implemented the model ``acropolis.ext.models.ResonanceModel``, which can be used to calculate PDI constraints for models with resonantly-enhanced DM annihilations
<!-- - Updated the initial abundances, which have now be calculated with ``PArthENoPE v3.0`` and hence include the updated deuterium reaction rates -->
 - Added PDG2021 and PDG2022 values to ``acropolis.obs``
 - Implemented the new package ``acropolis.jit`` to fixed warnings caused by new versions of ``numba``
 - Removed the requirement for the data in ``cosmo_file.dat`` to be equidistant in log space
 - Improved the progress indicator when running parameter scans without a ``fast`` parameter
  - Unified the plotting script in ``plots/plot_scan_results.py`` by using the methods defined in ``acropolis.plots``
 - Added additional plotting functionality in ``acropolis.plots`` (extracting contours,  specifying the ``x`` and ``y`` data for the plot, ...)
  
</details><br />

<details>
<summary>v1.2.2 (April 6, 2022)</summary>
  
 - Implemented fixes for the issues #10 and #11 on GitHub
 - Made some initial plotting functions available in ``acropolis.plots``, which can be used to easily plot the results of parameter scans
 - Improved the output that is printed to the screen (especially for parameter scans if ``verbose=True``)
 - Updated the neutron lifetime to the PDG 2020 recommended value
 - Included some example files, e.g. for parameter scans, in the directory examples/
 - Included a new c-file ./tools/create_sm_abundance_file.c, which can be used with [``AlterBBN``](https://alterbbn.hepforge.org/) to generate the file ``abundance_file.dat`` for sm.tar.gz
 - Fixed a bug that prohibited running 2d parameter scans without 'fast' parameters
 - Fixed a bug that caused INFO messages to be printed even for ``verbose=False``
  
</details><br />

<details>
<summary>v1.2.1 (February 16, 2021)</summary>
  
 - Fixed a bug in ``DecayModel``. Results that have been obtained with older versions can be corrected by multiplying the parameter ``n0a`` with an additional factor ``2.7012``. All results of our papers remain unchanged.
 - Updated the set of initial abundances to the most recent values returned by [``AlterBBN``](https://alterbbn.hepforge.org/) v2.2 (explicitly, we used ``failsafe=12``)
  
</details><br />

<details>
<summary>v1.2 (January 15, 2021)</summary>
  
 - Speed improvements when running non-thermal nucleosynthesis (by a factor 7)
 - Modified the directory structure by moving ./data to ./acropolis/data to transform ``ACROPOLIS`` into a proper package, which can be installed via ``python3 -m pip install . --user`` (also putting the executables ``decay`` and ``annihilation`` into your ``PATH``)
 - Added the decay of neutrons and tritium to the calculation
 - For AnnihilationModel, it is now possible to freely choose the dark-matter density parameter (default is 0.12)
  
</details><br />

<details>
<summary>v1.1 (December 1, 2020)</summary>
  
 - For the source terms it is now possible to specify arbitrary monochromatic and continuous contributions, meaning that the latter one is no longer limited to only final-state radiation of photons
 - By including additional JIT compilation steps, the runtime without database files was drastically decreased (by approximately a factor 15)
 - The previously mentioned performance improvements also allowed to drop the large database files alltogether, which results in a better user experience (all database files are now part of the git repo and no additional download is required) and a significantly reduced RAM usage (&#x223C;900MB &#x2192; &#x223C;20MB)
 - Fixed a bug, which could lead to NaNs when calculating heavily suppressed spectra with E<sub>0</sub> &#x226B; me<sup>2</sup>/(22T)
 - Added a unified way to print the final abundances in order to declutter the wrapper scripts. This makes it easier to focus on the actual important parts when learning how to use ``ACROPOLIS``
 - Moved from bytecode to simple text files for the remaining database file, as the former leads to unexpected behaviour on some machines
 - Added additional info and warning messages for the user's convenience
  
</details><br />

<details>
<summary>v1.0 (November 12, 2020)</summary>

 - Initial release
  
</details><br />

# Installation from PyPI

*This is the recommended way to install ACROPOLIS!*

To install ACROPOLIS from PyPI, first make sure that ``pip`` is installed on your system and afterwards install ACROPOLIS at user-level by executing the command

```
python3 -m pip install ACROPOLIS --user
```

Once the installation is completed, the different modules of ACROPOLIS can directly be imported into our own Python code (just like e.g. ``numpy``). Additionally, the installation also ensures that the two executable ``decay`` and ``annihilation`` are copied into your ``PATH`` and that all dependencies are fulfilled.

If you want to install ACROPOLIS system wide or within a virtual environment, drop the ``--user`` flag in the command above and run with ``sudo`` if necessary.

If any dependencies of ACROPOLIS conflict with those for other programs in your work environment, it is strongly advised to utilize the capabilities of Python's virtual environments.


# Installation from GitHub

To install ACROPOLIS directly from GitHub, execute the command

```
python3 -m pip install git+https://github.com/hep-mh/acropolis.git --user
```

# Usage without installation

In case you just want to use ACROPOLIS without any additional installation steps, it is necessary to manually check that all dependencies are fulfilled. As specified in ``setup.py``, ACROPOLIS depends on the following packages (older versions might work, but have not been thoroughly tested)

 - NumPy (> 1.19.1)
 - SciPy (>1.5.2)
 - Numba (> 0.51.1)

The most recent versions of these packages can be collectively installed via the command

```
python3 -m pip install numpy, scipy, numba --user
```

Afterwards, you can import the different modules into your own Python code, as long as said code resides in the ``acropolis`` directory (like ``decay`` and ``annihilation``). If you instead want to also use the different modules from other directories, please consider using one of the two previously mentioned installation methods.


# Using the example models

ACROPOLIS ships with two executables, ``decay`` and ``annihilation``, which wrap the scenarios discussed in section 4.1 and section 4.2 from the manual, respectively. Both of these files need to be called with six command-line arguments each, a list of which can be obtained by running the command of choice without any arguments at all. As an example, the following command runs the process of photodisintegration for an unstable mediator with a mass of 10MeV and a lifetime of 10<sup>5</sup>s that decays exclusively into photons and has an abundance of 10<sup>-10</sup> relative to photons at a reference temperature of 10MeV (*if you did not install ACROPOLIS via pip, you have to run this command from within the main directory and make sure to append an additional ``./`` to the beginning of the commands*)

```
decay 10 1e5 10 1e-10 0 1
```

On a similar note, the following command runs the process of photodisintegration for residual s-wave annihilations of a dark-matter particle with a mass of 10MeV and a cross-section of 10<sup>-25</sup> cm³/s that annihilates exclusively into photons

```
annihilation 10 1e-25 0 0 0 1
```

# Supported platforms

ACROPOLIS works on any platform that supports ``python3`` and ``clang``, the latter of which is required for ``numba`` to work.



            

Raw data

            {
    "_id": null,
    "home_page": "https://acropolis.hepforge.org",
    "name": "ACROPOLIS",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Paul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/51/96/94b5a70bde2de33e25c13b85135647a5fbfb9b0ccd10c51f79732fd3841b/ACROPOLIS-1.3.0.tar.gz",
    "platform": null,
    "description": "# ACROPOLIS\n\n**A** generi**C** f**R**amework f**O**r **P**hotodisintegration **O**f **LI**ght element**S**\n\n![arXiv: 2011.06518](https://img.shields.io/badge/arXiv-2011.06518-red.svg?style=flat-square)\n![Language: Python3](https://img.shields.io/badge/Language-Python3-blue.svg?style=flat-square)\n![Version: 1.3.0](https://img.shields.io/badge/Current_Version-1.3.0-green.svg?style=flat-square)\n![DevVersion: 2.0.0](https://img.shields.io/badge/Current_Dev_Version-2.0.0-orange.svg?style=flat-square)\n\n<img src=\"https://acropolis.hepforge.org/ACROPOLIS.png\" alt=\"logo\" width=\"600\"/><br />\nWhen using this code for your own scientific publications, please cite\n\n- **ACROPOLIS: A generiC fRamework fOr Photodisintegration Of LIght elementS**\\\n  Paul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg\\\n  https://arxiv.org/abs/2011.06518\n- **Updated BBN constraints on electromagnetic decays of MeV-scale particles**\\\n  Paul Frederik Depta, Marco Hufnagel, Kai Schmidt-Hoberg\\\n  https://arxiv.org/abs/2011.06519\n- **BBN constraints on MeV-scale dark sectors. Part II. Electromagnetic decays**\\\n  Marco Hufnagel, Kai Schmidt-Hoberg, Sebastian Wild\\\n  https://arxiv.org/abs/1808.09324\n\n<!--*The most recent version of the manual can always be found on GitHub in the manual/ folder. The respective publication on arXiv might be out-of-date, especially when new versions of the code become available.*-->\n\n# Abstract\n\nThe remarkable agreement between observations of the primordial light element abundances and the corresponding theoretical predictions within the standard cosmological history provides a powerful method to constrain physics beyond the standard model of particle physics (BSM). For a given BSM model these primordial element abundances are generally determined by (i) Big Bang Nucleosynthesis and (ii) possible subsequent disintegration processes. The latter potentially change the abundance values due to late-time high-energy injections which may be present in these scenarios. While there are a number of public codes for the first part, no such code is currently available for the second. Here we close this gap and present ACROPOLIS, A generiC fRamework fOr Photodisintegration Of LIght elementS. The widely discussed cases of decays as well as annihilations can be run without prior coding knowledge within example programs. Furthermore, due to its modular structure, ACROPOLIS can easily be extended also to other scenarios.\n\n# Changelog\n\n<details open>\n<summary>v1.3.0 (September 17, 2024)</summary>\n\n- Implemented the model ``acropolis.ext.models.ResonanceModel``, which can be used to calculate PDI constraints for models with resonantly-enhanced DM annihilations\n<!-- - Updated the initial abundances, which have now be calculated with ``PArthENoPE v3.0`` and hence include the updated deuterium reaction rates -->\n - Added PDG2021 and PDG2022 values to ``acropolis.obs``\n - Implemented the new package ``acropolis.jit`` to fixed warnings caused by new versions of ``numba``\n - Removed the requirement for the data in ``cosmo_file.dat`` to be equidistant in log space\n - Improved the progress indicator when running parameter scans without a ``fast`` parameter\n  - Unified the plotting script in ``plots/plot_scan_results.py`` by using the methods defined in ``acropolis.plots``\n - Added additional plotting functionality in ``acropolis.plots`` (extracting contours,  specifying the ``x`` and ``y`` data for the plot, ...)\n  \n</details><br />\n\n<details>\n<summary>v1.2.2 (April 6, 2022)</summary>\n  \n - Implemented fixes for the issues #10 and #11 on GitHub\n - Made some initial plotting functions available in ``acropolis.plots``, which can be used to easily plot the results of parameter scans\n - Improved the output that is printed to the screen (especially for parameter scans if ``verbose=True``)\n - Updated the neutron lifetime to the PDG 2020 recommended value\n - Included some example files, e.g. for parameter scans, in the directory examples/\n - Included a new c-file ./tools/create_sm_abundance_file.c, which can be used with [``AlterBBN``](https://alterbbn.hepforge.org/) to generate the file ``abundance_file.dat`` for sm.tar.gz\n - Fixed a bug that prohibited running 2d parameter scans without 'fast' parameters\n - Fixed a bug that caused INFO messages to be printed even for ``verbose=False``\n  \n</details><br />\n\n<details>\n<summary>v1.2.1 (February 16, 2021)</summary>\n  \n - Fixed a bug in ``DecayModel``. Results that have been obtained with older versions can be corrected by multiplying the parameter ``n0a`` with an additional factor ``2.7012``. All results of our papers remain unchanged.\n - Updated the set of initial abundances to the most recent values returned by [``AlterBBN``](https://alterbbn.hepforge.org/) v2.2 (explicitly, we used ``failsafe=12``)\n  \n</details><br />\n\n<details>\n<summary>v1.2 (January 15, 2021)</summary>\n  \n - Speed improvements when running non-thermal nucleosynthesis (by a factor 7)\n - Modified the directory structure by moving ./data to ./acropolis/data to transform ``ACROPOLIS`` into a proper package, which can be installed via ``python3 -m pip install . --user`` (also putting the executables ``decay`` and ``annihilation`` into your ``PATH``)\n - Added the decay of neutrons and tritium to the calculation\n - For AnnihilationModel, it is now possible to freely choose the dark-matter density parameter (default is 0.12)\n  \n</details><br />\n\n<details>\n<summary>v1.1 (December 1, 2020)</summary>\n  \n - For the source terms it is now possible to specify arbitrary monochromatic and continuous contributions, meaning that the latter one is no longer limited to only final-state radiation of photons\n - By including additional JIT compilation steps, the runtime without database files was drastically decreased (by approximately a factor 15)\n - The previously mentioned performance improvements also allowed to drop the large database files alltogether, which results in a better user experience (all database files are now part of the git repo and no additional download is required) and a significantly reduced RAM usage (&#x223C;900MB &#x2192; &#x223C;20MB)\n - Fixed a bug, which could lead to NaNs when calculating heavily suppressed spectra with E<sub>0</sub> &#x226B; me<sup>2</sup>/(22T)\n - Added a unified way to print the final abundances in order to declutter the wrapper scripts. This makes it easier to focus on the actual important parts when learning how to use ``ACROPOLIS``\n - Moved from bytecode to simple text files for the remaining database file, as the former leads to unexpected behaviour on some machines\n - Added additional info and warning messages for the user's convenience\n  \n</details><br />\n\n<details>\n<summary>v1.0 (November 12, 2020)</summary>\n\n - Initial release\n  \n</details><br />\n\n# Installation from PyPI\n\n*This is the recommended way to install ACROPOLIS!*\n\nTo install ACROPOLIS from PyPI, first make sure that ``pip`` is installed on your system and afterwards install ACROPOLIS at user-level by executing the command\n\n```\npython3 -m pip install ACROPOLIS --user\n```\n\nOnce the installation is completed, the different modules of ACROPOLIS can directly be imported into our own Python code (just like e.g. ``numpy``). Additionally, the installation also ensures that the two executable ``decay`` and ``annihilation`` are copied into your ``PATH`` and that all dependencies are fulfilled.\n\nIf you want to install ACROPOLIS system wide or within a virtual environment, drop the ``--user`` flag in the command above and run with ``sudo`` if necessary.\n\nIf any dependencies of ACROPOLIS conflict with those for other programs in your work environment, it is strongly advised to utilize the capabilities of Python's virtual environments.\n\n\n# Installation from GitHub\n\nTo install ACROPOLIS directly from GitHub, execute the command\n\n```\npython3 -m pip install git+https://github.com/hep-mh/acropolis.git --user\n```\n\n# Usage without installation\n\nIn case you just want to use ACROPOLIS without any additional installation steps, it is necessary to manually check that all dependencies are fulfilled. As specified in ``setup.py``, ACROPOLIS depends on the following packages (older versions might work, but have not been thoroughly tested)\n\n - NumPy (> 1.19.1)\n - SciPy (>1.5.2)\n - Numba (> 0.51.1)\n\nThe most recent versions of these packages can be collectively installed via the command\n\n```\npython3 -m pip install numpy, scipy, numba --user\n```\n\nAfterwards, you can import the different modules into your own Python code, as long as said code resides in the ``acropolis`` directory (like ``decay`` and ``annihilation``). If you instead want to also use the different modules from other directories, please consider using one of the two previously mentioned installation methods.\n\n\n# Using the example models\n\nACROPOLIS ships with two executables, ``decay`` and ``annihilation``, which wrap the scenarios discussed in section 4.1 and section 4.2 from the manual, respectively. Both of these files need to be called with six command-line arguments each, a list of which can be obtained by running the command of choice without any arguments at all. As an example, the following command runs the process of photodisintegration for an unstable mediator with a mass of 10MeV and a lifetime of 10<sup>5</sup>s that decays exclusively into photons and has an abundance of 10<sup>-10</sup> relative to photons at a reference temperature of 10MeV (*if you did not install ACROPOLIS via pip, you have to run this command from within the main directory and make sure to append an additional ``./`` to the beginning of the commands*)\n\n```\ndecay 10 1e5 10 1e-10 0 1\n```\n\nOn a similar note, the following command runs the process of photodisintegration for residual s-wave annihilations of a dark-matter particle with a mass of 10MeV and a cross-section of 10<sup>-25</sup> cm\u00b3/s that annihilates exclusively into photons\n\n```\nannihilation 10 1e-25 0 0 0 1\n```\n\n# Supported platforms\n\nACROPOLIS works on any platform that supports ``python3`` and ``clang``, the latter of which is required for ``numba`` to work.\n\n\n",
    "bugtrack_url": null,
    "license": "GPL3",
    "summary": "A generiC fRamework fOr Photodisintegration Of LIght elementS",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://acropolis.hepforge.org"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41112bd216bceaf6f53da0782e7f312486c24b7f998b43831e55a64553b3228e",
                "md5": "f9a4b309f3907ae362e24e58692ae075",
                "sha256": "57b33efb8281815041e66ef39ed4d1aa6d9d790c1c62a2973c86e44a14c91b25"
            },
            "downloads": -1,
            "filename": "ACROPOLIS-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f9a4b309f3907ae362e24e58692ae075",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4672852,
            "upload_time": "2024-09-24T10:49:25",
            "upload_time_iso_8601": "2024-09-24T10:49:25.777371Z",
            "url": "https://files.pythonhosted.org/packages/41/11/2bd216bceaf6f53da0782e7f312486c24b7f998b43831e55a64553b3228e/ACROPOLIS-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "519694b5a70bde2de33e25c13b85135647a5fbfb9b0ccd10c51f79732fd3841b",
                "md5": "e47b1fbd503984bf237c9963e27cf9d0",
                "sha256": "c2785e4ee9d2c0ce1be474df7a9c5f4bb35385a3514ff5556cc143dfca2b5a73"
            },
            "downloads": -1,
            "filename": "ACROPOLIS-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e47b1fbd503984bf237c9963e27cf9d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4672367,
            "upload_time": "2024-09-24T10:49:31",
            "upload_time_iso_8601": "2024-09-24T10:49:31.390024Z",
            "url": "https://files.pythonhosted.org/packages/51/96/94b5a70bde2de33e25c13b85135647a5fbfb9b0ccd10c51f79732fd3841b/ACROPOLIS-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-24 10:49:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "acropolis"
}
        
Elapsed time: 0.32856s