Skip to main content

21cmCAST

Build Status

PyPI - Python Version PyPi Version License: GPL v3

Static Badge Static Badge Static Badge

This lightweight package provides tools to perform automated analysis of 21cmFAST12 outputs and in particular run Fisher foreCASTs. It has initially been built on / complementarily to the 21cmFish package3.


⚠️ If you are using this code, please cite the following work for which it has been developped

Gaétan Facchinetti, Laura Lopez-Honorez, Yuxiang Qin, Andrei Mesinger, 21cm signal sensitivity to dark matter decay [JCAP 01 (2024) 005] [arXiv:2308.16656]


Installation

In order to install the code you can install it with pip, running

pip install py21cmcast

To install a modified version of the code (or the latest version, available on github) clone this repository and run

pip install -e .

in the main folder. In addition, meta.yaml and build.sh files are provided for a manual installation with conda. However, the conda install is not garanteed to succeed since it has not been tested.

Although the installation should proceed and you should be able to import the package into your python environement, in order to analyse 21cmFAST raw data, the codes requires to have a working installation of 21cmFAST. For Fisher forcasts, you will need to install 21cmSense4 in order to evaluate the sensitivity of instruments (current version works with 21cmSense version 2.0.0).

Quick start guide

Examples on how to run the code are available here along with an minimal example of input config file.

Ongoing work

To do list:

  • rearrange the code in a self-contained package
  • uniformely use astropy units throughout the entire code
  • add docstrings to the classes

  1. Andrei Mesinger, Steven Furlanetto, and Renyue Cen, 21cmFAST: A Fast, Semi-Numerical Simulation of the High-Redshift 21-cm Signal [arXiv:1003.3878] ↩

  2. Andrei Mesinger and Steven Furlanetto, Efficient Simulations of Early Structure Formation and Reionization [arXiv:0704.0946] ↩

  3. Charlotte A. Mason, Julian B. Muñoz, Bradley Greig, Andrei Mesinger, and Jaehong Park, 21cmfish: Fisher-matrix framework for fast parameter forecasts from the cosmic 21-cm signal [arXiv:2212.09797] ↩

  4. Jonathan C. Pober, Adrian Liu, Joshua S. Dillon, James E. Aguirre, Judd D. Bowman et al., What Next-Generation 21 cm Power Spectrum Measurements Can Teach Us About the Epoch of Reionization [arXiv:1310.7031] ↩

Metadata

Release files for py21cmcast 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py21cmcast 1.0.4
File Size Uploaded
py21cmcast-1.0.4.tar.gz 69.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py21cmcast 1.0.4
File Interpreter ABI Platform
py21cmcast-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / py21cmcast-1.0.4.tar.gz

Download URL py21cmcast-1.0.4.tar.gz
Size 69.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ce3e972409142c329210dc5a0ccb3e700cbd5baff825179e29f2d2748319f80
BLAKE2b-256 checksum
How to use checksums
cb43583ea20da8c10d57bb4799874f41d94e415984547c92021189a7217e6c3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release files / py21cmcast-1.0.4-py3-none-any.whl

Download URL py21cmcast-1.0.4-py3-none-any.whl
Size 60.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c63920df3580d9467c9e26a17036e70a55cfe3b6c3b54ecf22d61ebe28e9249c
BLAKE2b-256 checksum
How to use checksums
fc5d5efe4700ab6a8d6569af1f0571aba6b7438fb92f687da99a238851d97fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

1 release file

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page