HYREC-2
A code for primordial hydrogen and helium recombination including radiative transfer. An updated version of HyRec with new computing mode.
HYREC-2 is implemented in CLASS code as a default module for recombination history since version 3.0.0.
HYREC-2 can be used in CAMB code as well.
The original code HyRec developed by Yacine Ali-Haimoud and Chris Hirata (2010-17). HYREC-2 developed with contributions from Nanoom Lee (2020).
Version: July 2020. See readme.pdf for detailed info, and check HYREC-2 paper (Reference 1 below) for the code development.
Using the python wrapper
In this fork we have implement a lightweight python wrapper for HYREC-2 using cython.
Installation
- The easiest option for installation is to use
pip install hyrec
How to run HYREC-2
An example of notebook using the python wrapper is given here.
Using the classical C version
Installation
- Clone the repo
git clone https://github.com/nanoomlee/HYREC-2.git
How to run HYREC-2
- Compiling the code
gcc -lm -O3 hyrectools.c helium.c hydrogen.c history.c energy_injection.c hyrec.c -o hyrec
- Computing a recombination history
./hyrec < input.dat
The code will take parameters from input.dat and compute the recombination history. It will print out three columns in output.dat, which are: redshift, free electron fraction, matter temperature in Kelvin. For input parameter description, see input.dat.
References
If you use HYREC-2, please cite the companion papers:
- N. Lee & Y. Ali-Haimoud, Phys. Rev. D 102 8, 083517 (2020)
- Y. Ali-Haimoud & C. M. Hirata, Phys. Rev. D 83, 043513 (2011)
You may also refer to the following papers, on which this work relies substantially:
Metadata
Release files for pyhyrec 1.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 | Actions |
|---|---|---|---|---|
| pyhyrec-1.0.0.tar.gz | 377.0 kB | Without provenance | Details for pyhyrec-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhyrec-1.0.0-cp310-cp310-macosx_13_0_arm64.whl | CPython 3.10 | CPython 3.10 | macOS 13.0+ ARM64 | Details for pyhyrec-1.0.0-cp310-cp310-macosx_13_0_arm64.whl |
Total release size: 810.5 kB
Release files / pyhyrec-1.0.0.tar.gz
| Download URL | pyhyrec-1.0.0.tar.gz |
|---|---|
| Size | 377.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7caccc5e30057ec684216465abf777081c409b997d1e973c1dd686e8d1f94502
|
|
BLAKE2b-256 checksum How to use checksums |
496c0b7e5bc752ec4fb0f082cdacf98c73caf715c27602bc344c842944aed35c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / pyhyrec-1.0.0-cp310-cp310-macosx_13_0_arm64.whl
| Download URL | pyhyrec-1.0.0-cp310-cp310-macosx_13_0_arm64.whl |
|---|---|
| Size | 433.5 kB |
| Tags | CPython 3.10 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
52476bb596679d4127fff4d0057f422aaea48fded27910928a3bc78c0e1e2e2a
|
|
BLAKE2b-256 checksum How to use checksums |
7ee46dd4ea1b68e06bd6afa03ec25570e7299d77caad0f9db4083f4b3e781de4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for pyhyrec 1.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.
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.