Skip to main content

Basics

Overview

Name:

Exploring Cosmos with Hydrogen Observation

Author:

Shikhar Mittal

Paper:

Mittal et al (2026)

Documentation:

echo21.readthedocs.io

Why do you need this code?

ECHO21 is a fast and flexible Python package for modelling the global 21-cm signal across cosmic history - from the dark ages to reionization. Given a set of astrophysical and cosmological parameters, the code self-consistently generates the global 21-cm signal, neutral hydrogen fraction, and CMB optical depth.

Designed for both precision studies and large-scale parameter inference, ECHO21 combines physical realism with computational efficiency. Its key features include:

  • simultaneous variation of astrophysical and cosmological parameters,

  • flexible prescriptions for halo mass functions and star formation models,

  • inclusion of Ly-\(\alpha\) heating and detailed IGM thermal evolution,

  • support for non-standard cosmologies such as interacting dark matter (Mittal et al 2026)

  • UV luminosity functions

A single realization of the signal can be generated in \(\sim 1\) second, making the code ideally suited for Bayesian inference, emulator training, and large parameter-space explorations.

ECHO21 is MPI-parallelized and scalable - equally at home on a laptop or a high-performance computing cluster.

Read more about it in the paper Mittal et al (2026).

Installation and requirements

This package can be installed as

pip install echo21

Quick start

The following code more or less captures the main functionalities of this package.

import echo21

pipe = echo21.pipeline()
pipe.run_simulation()

Save the above code as (say) run_echo21.py and run it as

python run_echo21.py

Running the above will generate an output folder with the name output_<YYYYMMDD-hhmmss> which contains three files. To learn how to set the astrophysical or cosmological parameters, halo mass function, star formation model, redshifts at which to evaluate the global signal, and structure of the output files see the documentation. To learn about the physics of this package see our paper.

Once you have an understanding of the structure of output files, you can write your own scripts to create figures. To help you get started, see the jupyter notebooks in the ‘examples’ folder.

Documentation

For more details on the working of the package and understanding the output files refer to the documentation.

License and citation

The software is free to use on the MIT open-source license. If you use the software then please cite Mittal et al (2026).

If the code is used in a project where the author has provided significant scientific input, guidance on methodology, or assistance with interpretation of results, then co-authorship on resulting publications is expected, following standard academic practice.

Users are encouraged to contact the author when using the code for new scientific applications or major projects.

Metadata

Release files for echo21 4.3.2

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

Source distribution (sdist)

Source distribution for echo21 4.3.2
File Size Uploaded Provenance Actions
echo21-4.3.2.tar.gz 46.3 kB Without provenance Details for echo21-4.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 86.0 kB

Release files / echo21-4.3.2.tar.gz

Download URL echo21-4.3.2.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ecdcd04f078424ad57220d1bb61b5a1c7bee1dbdb3993a63616c130a2875abc
BLAKE2b-256 checksum
How to use checksums
745473e0779ee1fc3a330e3923ad84372f426e89ece794487e48f1491962ec07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / echo21-4.3.2-py3-none-any.whl

Download URL echo21-4.3.2-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcf3876f099fcbd1889a31d2f40c16135873fbd64141f25e673d7ecb78d15ea1
BLAKE2b-256 checksum
How to use checksums
901f47bac3b63e94f1a1509c7cc4491efd99631035e34c3a6fc1b7ebd3c95cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for echo21 4.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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