GithubHelp home page GithubHelp logo

ohahn / disco-eb Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 41.58 MB

JAX-based linear Einstein-Boltzmann solver for cosmology

License: GNU General Public License v3.0

Jupyter Notebook 98.81% Python 1.19%

disco-eb's Introduction

DISCO-EB - The DISCO-DJ Einstein-Boltzmann module

Implementation of a differentiable linear Einstein-Boltzmann solver for cosmology in JAX -- a module of the DISCO-DJ framework (DIfferentiable Simulations for COsmology, Done with Jax).

Note that this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Currently supported features (the list is growing, so check back):

  • Autodifferentiable via JAX
  • Standard LCDM model with Quintessence DE fluid (w0,wa) and massive neutrinos (one species)
  • Thermal history solver based on a simplified Recfast implementation in the module
  • Numerous example jupyter notebooks, e.g. for Euclid-like Fisher forecasts

New modules/plugins can be easily added (see how to contribute in CONTRIBUTING.md file). We are enthusiastic if extensions/improvements that are of broader interest are re-integrated into the master branch and DISCO-EB grows as a community effort.

Currently work in progress:

  • performance improvements

Installation

Simple Install

pip install git+https://github.com/ohahn/DISCO-EB.git

For Development

In a fresh virtual environment:

git clone https://github.com/ohahn/DISCO-EB.git
cd DISCO-EB
pip install -e .

Getting started

Start with the sample notebook nb_minimal_example.ipynb in the notebooks subdirectory. It explains how to compute a matter power spectrum and take a derivative w.r.t. a cosmological parameter.

Contributing and Licensing

See file CONTRIBUTING.md on how to contribute to the development.

The software is licensed under GPL v3 (see file LICENSE).

Citing in scientific publications or presentations

If you use DISCO-EB in your scientific work, you are required to acknowledge this by linking to this repository and citing the relevant papers:

Required Python Packages

  • JAX
  • diffrax==0.4.1
  • equinox
  • jaxtyping
  • jax_cosmo

disco-eb's People

Contributors

findus23 avatar flolist avatar ohahn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

markuslevonyak

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.