Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ie
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsull committed Aug 13, 2024
2 parents 1e8f959 674271b commit 06fcf12
Show file tree
Hide file tree
Showing 58 changed files with 30,555 additions and 2,103 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 1,3 @@
*.ipynb filter=nbstripout
*.zpln filter=nbstripout
*.ipynb diff=ipynb
34 changes: 10 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 4,22 @@ on:
- pull_request
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
- 'nightly'
# - '1.5'
- '1.6'
- '1.10'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
Expand All @@ -51,18 43,12 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: doctest
using Bolt
doctest(Bolt)'
- run: julia --project=docs docs/make.jl
version: '1.7'
- run: >
sudo apt-get install --no-install-recommends python3-pip
&& pip3 install jupytext
- run: julia --project=docs -e "using Pkg; Pkg.instantiate()"
- run: julia --threads=auto --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 3,8 @@
*.jl.mem
/docs/build/
.vscode
Manifest.toml
/Manifest.toml
.ipynb_checkpoints
test/Manifest.toml
examples/Manifest.toml
.DS_Store
11 changes: 8 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 7,20 @@ version = "0.1.0"
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
Bessels = "0e736298-9ec6-45e8-9647-e4fc86a2fe38"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
DoubleFloats = "497a8b3b-efae-58df-a0af-a86822472b78"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
FastGaussQuadrature = "442a2c76-b920-505d-bb47-c5924d526838"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
HypergeometricFunctions = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
NaturallyUnitful = "872cf16e-200e-11e9-2cdf-8bb39cfbec41"
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
NumericalIntegration = "e7bfaba1-d571-5449-8927-abc22e82249b"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Expand All @@ -26,14 30,15 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
ThreadPools = "b189fb0b-2eb5-4ed4-bc0c-d34c51242431"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
UnitfulAstro = "6112ee07-acf9-5e0f-b108-d242c714bf9f"
UnitfulCosmo = "961331e1-62bb-46d9-b9e3-f058129f1391"

[extras]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "DelimitedFiles"]
test = ["Test"]
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 1,30 @@
# Bolt

<!-- [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://xzackli.github.io/Bolt.jl/stable) -->
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://xzackli.github.io/Bolt.jl/dev)
[![](https://img.shields.io/badge/source-github-blue)](https://github.com/xzackli/Bolt.jl)
[![DOI](https://zenodo.org/badge/328298090.svg)](https://zenodo.org/doi/10.5281/zenodo.10065125)

[![Build Status](https://github.com/xzackli/Bolt.jl/workflows/CI/badge.svg)](https://github.com/xzackli/Bolt.jl/actions)
[![codecov](https://codecov.io/gh/xzackli/Bolt.jl/branch/main/graph/badge.svg?token=NDj9hvOUkN)](https://codecov.io/gh/xzackli/Bolt.jl)

⚡ Bolt is a pure-Julia integrator for the Boltzmann equations in cosmology. It can accurately compute the gradient of the CMB power spectrum, with respect to cosmological parameters, using forward-mode automatic differentiation.

**Authors**: Jamie Sullivan, Zack Li
**Contributors**: Jamie Sullivan, Zack Li, Marius Millea

<p align="center">
<img width=80% src="docs/assets/example_spectrum.png">
</p>
## Install

*A CMB temperature power spectrum and gradient from Bolt.jl.*
Bolt requires Julia 1.5 . To install, from the package prompt, run:

```
pkg> add https://github.com/xzackli/Bolt.jl
```

<p align="center">
<img width=80% src="docs/assets/example_linear_power_c.png">
</p>
## Gallery

*A CMB temperature power spectrum and gradient from Bolt.jl.*
![](example_spectrum.png) ![](docs/src/example_spectrum.png)

*A linear matter power spectrum and gradient from Bolt.jl.*
![](example_linear_power_c.png) ![](docs/src/example_linear_power_c.png)


Loading

0 comments on commit 06fcf12

Please sign in to comment.