Git Product home page Git Product logo

primpy's Introduction

primpy: calculations for the primordial Universe

primpy:calculations for the primordial Universe
Author: Lukas Hergt
Version: 2.9.0
Homepage:https://github.com/lukashergt/primpy
Documentation:https://primpy.readthedocs.io
Build Status Test Coverage Documentation Status PyPi version

Installation

primpy can be installed via pip

pip install primpy

or via the setup.py

git clone https://github.com/lukashergt/primpy
cd primpy
python setup.py install --user

You can check that things are working by running the test suite:

python -m pytest
flake8 --max-line-length=99 primpy tests
pydocstyle --convention=numpy primpy

Dependencies

Basic requirements:

Documentation:

Tests:

Citation

If you use primpy during your research for a publication, please cite the following paper:

L. T. Hergt, F. J. Agocs, W. J. Handley, M. P. Hobson, and A. N. Lasenby,
"Finite inflation in curved space", Phys. Rev. D 106, 063529 (2022),
https://doi.org/10.1103/PhysRevD.106.063529

or using the BibTeX:

@article{Hergt2022,
    archivePrefix = {arXiv},
    arxivId = {2205.07374},
    author = {Hergt, L. T. and Agocs, F. J. and Handley, W. J. and Hobson, M. P. and Lasenby, A. N.},
    doi = {10.1103/PhysRevD.106.063529},
    eprint = {2205.07374},
    issn = {2470-0010},
    journal = {Physical Review D},
    month = {sep},
    number = {6},
    pages = {063529},
    publisher = {American Physical Society (APS)},
    title = {{Finite inflation in curved space}},
    url = {https://journals.aps.org/prd/abstract/10.1103/PhysRevD.106.063529},
    volume = {106},
    year = {2022}
}

Contributing

There are many ways you can contribute via the GitHub repository.

  • You can open an issue to report bugs or to propose new features.
  • Pull requests are very welcome. Note that if you are going to propose major changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it.

primpy's People

Contributors

lukashergt avatar

Watchers

 avatar Fruzsina Agocs avatar

primpy's Issues

Create computation targets similar to camb and class

CAMB and CLASS have different targets/levels/depths for their compute function, such as background, thermal, cmb, etc.

We should implement something similar, where we can specify from the start whether we are interested in the background only, the comoving Hubble horizon, the approximate primordial power spectrum, or the full numerical primordial power spectrum.

Create parameter dictionary as the only input to a `compute` function

Currently the primpy setup is much too complicated, having to first instantiate a potential, passing that to an equation object, to then start the background ODE solver, and then ultimately run the oscode solver.

It would be much nicer to have a setup similar to CAMB and CLASS, where we create a parameter dictionary that contains all the necessary input information that then gets passed to a primpy compute function which performs everything in one fell swoop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.