GWInSpect
Gravitational Wave Inflationary Spectra
GWInSpect is a lightweight, research-grade Python package that computes:
- The present-epoch spectral energy density of first-order inflationary gravitational waves, $\Omega_{\rm GW}(f) $, produced by a given (user-defined) post-inflationary expansion history.
- Verifies whether the BBN constraint on (integrated) gravitational wave energy density is satisfied.
📦 Installation
Install GWInSpect by running any one of the following commands in your terminal.
1. ✅ From PyPI (Recommended)
pip install gwinspect
2. 🧪 From GitHub
pip install git+https://github.com/athul104/GWInSpect.git
3. 🛠️ Cloning repo (to make an editable copy of the package in your local system)
git clone https://github.com/athul104/GWInSpect.git
cd GWInSpect
pip install -e .
📋 Requirements
The following necessary libraries will be automatically installed when you install GWInSpect.
- Python 3.9 or later
numpy >= 1.21scipy >= 1.9mpmath >= 1.2.0
📓 Tutorial Notebook
The package includes a tutorial notebook under examples/tutorial_gwinspect.ipynb
🧱 Package Structure
Each module is independently documented and demonstrated in the tutorial notebook.
-
spectrum.pycompute_omega_gw
Computes $\Omega_{\rm GW}(f)$ for a user defined post-inflationary history of the Universe consisting of a sequence of pre-hot Big Bang epochs, each with a constant equation of state.
-
constraints.pycheck_bbn
Computes BBN constraint integral piecewise for the user defined sequence of post-inflationary epochs.
-
cosmo_tools.pyUtilities for cosmological parameter conversions:temp_of_EConvert temperature to energy scaleenergy_of_TConvert energy scale to temperaturefreq_of_TConvert temperature to present-day frequency of gravitational wavescompute_efoldsCompute the duration of each epoch in terms of number of $e$-folds
-
thermo.py- Functions to compute $g_{*}(T), g_{s}(T)$ from fitting functions given in K. Saikawa and S. Shirai arXiv:1803.01038.
- Key functions:
g_starandg_s - Users can also load the pre-computed data of [temperature $T$, $g_{*}(T)$, $g_{s}(T)$, energy($T$)] stored in
src\gwinspect\data\eff_rel_dof.txtusingload_eff_rel_dof()
-
constants.py- Contains constants: reduced Planck mass
m_P, present CMB temperatureT0, scalar amplitudeA_S, Present radiation density parameteromega_rad0, BBN temperatureT_bbn, matter-radiation equality temperatureT_eq - Users can also redefine the values of this conatant using
set_constants
- Contains constants: reduced Planck mass
📚 Citation
This package accompanies the paper:
Swagat S. Mishra & Athul K. Soman (2025)
Morphological Zoo of Inflationary Gravitational Wave Spectra imprinted by a Sequence of Post-Inflationary Epochs
arXiv:2510.25672
If you use GWInSpect in academic work, please cite:
@article{Mishra:2025nnu,
author = "Mishra, Swagat S. and Soman, Athul K.",
title = "{Morphological Zoo of Inflationary Gravitational Wave Spectra imprinted by a Sequence of Post-Inflationary Epochs}",
eprint = "2510.25672",
archivePrefix = "arXiv",
primaryClass = "astro-ph.CO",
month = "10",
year = "2025"
}
🛠 License
GPL-3.0-or-later
©️ GWInSpect authors (2025)
🙋 Feedback
Thank you for your interest in GWInSpect 💜.
Please report issues or suggestions at:
github.com/athul104/GWInSpect/issues
Metadata
Release files for gwinspect 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 |
|---|---|---|---|---|
| gwinspect-1.0.0.tar.gz | 1.1 MB | Without provenance | Details for gwinspect-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gwinspect-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for gwinspect-1.0.0-py3-none-any.whl |
Total release size: 2.3 MB
Release files / gwinspect-1.0.0.tar.gz
| Download URL | gwinspect-1.0.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
155de740290811d717ea364e822331fe5e98b9460b191c50e9a3152dd5c62781
|
|
BLAKE2b-256 checksum How to use checksums |
90e1b86d7b9989813144439231c26308528325df0e658979943af93087b0da56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / gwinspect-1.0.0-py3-none-any.whl
| Download URL | gwinspect-1.0.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80542f5f8b1e857c0a174bdacb70252a74a0229cc4b137f670e9242045d09e03
|
|
BLAKE2b-256 checksum How to use checksums |
ec30af0c6804e05366a75a93874ffabb990baa85af37c6f6aca3081a5ed9bc5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for gwinspect 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.