A 21cmFAST emulator of the first billion years
An emulator of 21cmFAST summaries, supporting three galaxy-formation models:
- ACG (v1; Breitman+23) — Atomic Cooling Galaxies (Pop II only). A 9-parameter emulator for the standard reionization scenario without mini-halos.
- radio (v2; Cang+24) — Radio Background. A 5-parameter emulator that adds a radio background sourced by molecular cooling (Pop III) stars on top of atomic cooling galaxies.
- MCG (v3; Breitman+26) — Molecular Cooling Galaxies. The most complete 11-parameter emulator, jointly modelling atomic and molecular cooling galaxies (Pop II + Pop III). Uniquely emulates the 2D cylindrical power spectrum P(k⊥, k∥) via a score-based diffusion model.
Emulated summary statistics per model
| Output | acg (v1) | radio (v2) | mcg (v3) |
|---|---|---|---|
| Global brightness temperature Tb | ✓ | ✓ | ✓ |
| Neutral fraction xHI | ✓ | ✓ | ✓ |
| Thomson optical depth τ | ✓ | ✓ | ✓ |
| IGM spin temperature Ts | ✓ | ✗ | ✓ |
| Radio temperature Tr | ✗ | ✓ | ✗ |
| 1D power spectrum P(k) | ✓ | ✓ | ✓ |
| 2D power spectrum P(k⊥, k∥) | ✗ | ✗ | ✓ |
| UV luminosity functions | ✓ | ✗ | ✓ |
Documentation
See the documentation for tutorials and API.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
Citation
If you use 21cmEMU in your research, please cite Breitman+23. In particular, if you use 21cmEMUv2, also cite Cang+24.
If you use the newest mcg/v3 emulator, please also cite Breitman+26.
License
Distributed under the terms of the MIT license, 21cmEMU is free and open source software.
Metadata
Release files for py21cmEMU 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py21cmemu-3.0.0.tar.gz | 234.7 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py21cmemu-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 443.4 MB
Release files / py21cmemu-3.0.0.tar.gz
| Download URL | py21cmemu-3.0.0.tar.gz |
|---|---|
| Size | 234.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f27eb0a3a10d803f35a87172a9272745dc5e04233cfac776517fdccd0406800
|
|
BLAKE2b-256 checksum How to use checksums |
af66a47ec829d4bcfe263db24b54a6ae8e6c56dc924440077f4d8225ade57d0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.
Transparency logRelease files / py21cmemu-3.0.0-py3-none-any.whl
| Download URL | py21cmemu-3.0.0-py3-none-any.whl |
|---|---|
| Size | 208.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e94002e36bff9aa8d7921806b6fdc2c713b3d7d28ba0e30aefafe0c2cde08b6
|
|
BLAKE2b-256 checksum How to use checksums |
ab5c2bbb7c90ce7fc62b716cf9bca14f4a6e4eb1c9a620cb2b161c4498e90e48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.
Transparency logSecurity for py21cmEMU 3.0.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for py21cmemu-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.
Transparency logA 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.