Skip to main content

Introduction

Pyflation is a Python package for calculating cosmological perturbations during inflationary expansion of the universe.

Pyflation was created by Ian Huston (http://www.ianhuston.net) while at Queen Mary, University of London (http://www.qmul.ac.uk).

Once installed the modules in the pyflation package can be used to run simulations of different scalar field models of the early universe.

The main classes are contained in the cosmomodels module and include simulations of background fields and first order and second order perturbations. The sourceterm package contains modules required for the computation of the term required for the evolution of second order perturbations. The analysis package contains routines to calculate the first order First and Second order perturbations can be calculated for single field models but only first order perturbations can be evolved for multi-field models.

Alongside the Python package, the bin directory contains Python scripts which can run first and second order simulations. A helper script called “pyflation_qsubstart.py” sets up a full second order run (including background, first order and source calculations) to be used on queueing system which contains the “qsub” executable (e.g. a Rocks cluster).

Installation of the code is described in the INSTALL.txt file. The pyflation package can be installed as a normal Python package to the site-packages directory or each run of the code can be self-contained with code, results and logs all contained in a run directory.

The “pyflation_newrun.py” script creates a new run directory and populates it with the code and sub-directories which are required. In particular the file “provenence.log” in the “applogs” directory contains information about the version of the code and system libraries at the time of the creation of the run.

More information about Pyflation is available at the website http://pyflation.ianhuston.net. Online documentation is available at http://pyflation.ianhuston.net/docs.

For copyright and license information please see the LICENSE.txt file. For installation information see the INSTALL.txt file. For usage information see the USAGE.txt file.

Relevant Publications

Pyflation has been used to generate results for peer-reviewed publications including

  • Ian Huston, Adam Christopherson, Calculating Non-adiabatic Pressure Perturbations during Multi-field Inflation, Physical Review D85, 063507 (2012), http://arXiv.org/abs/1111.6919

  • Ian Huston, Karim A. Malik, Second Order Perturbations During Inflation Beyond Slow-roll, Journal of Cosmology and Astroparticle Physics 10(2011)029, http://arXiv.org/abs/1103.0912

  • Ian Huston, Karim A. Malik, Numerical calculation of second order perturbations, Journal of Cosmology and Astroparticle Physics 09(2009)019, http://arXiv.org/abs/0907.2917

As a courtesy please cite one or more of these papers in any publication which uses Pyflation.

Acknowledgements

This author of this software is supported by the Science & Technology Facilities Council under grants ST/G002150/1 and ST/J001546/1.

Thank you to Adam Christopherson, Karim Malik, David Mulryne and Jason Furtney for their discussions and contributions.

Metadata

Release files for pyflation 0.2.3

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

Source distribution (sdist)

Source distribution for pyflation 0.2.3
File Size Uploaded Provenance
pyflation-0.2.3.tar.gz 153.1 kB Without provenance Details

Release files / pyflation-0.2.3.tar.gz

Download URL pyflation-0.2.3.tar.gz
Size 153.1 kB
Tags Source
SHA-256 checksum
How to use checksums
833fa866c9f90ae52dcb2a24110a97d0346a2b32912833b1f022d17669c98081
BLAKE2b-256 checksum
How to use checksums
3dd4c892a27dcaf18c3804c970d19392059b3d8184ba7efdc1f3a2f46ad55f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyflation 0.2.3

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