Skip to content

Commit a69615c

Browse files
committed
Updated example notebook, tested jit and grad on the GPU
1 parent fa95bd5 commit a69615c

4 files changed

Lines changed: 199 additions & 71 deletions

File tree

ABCMB/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def run_cosmology(self, params : dict):
157157
ells = self.SS.ells
158158

159159
if self.return_PTBG:
160-
return ells, Cls, PT, BG
160+
return Cls, ells, PT, BG
161161
else:
162-
return ells, Cls
162+
return Cls, ells
163163

164164
# @jit
165165
@eqx.filter_jit

Module_Tests/spectrum_test.ipynb

Lines changed: 65 additions & 32 deletions
Large diffs are not rendered by default.

example_notebooks/ABCMB_basics.ipynb

Lines changed: 131 additions & 36 deletions
Large diffs are not rendered by default.

pytests/accuracy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_accuracy_checker(h = 0.6762):
4444
}
4545

4646
model = Model(specs) # ZZ: model now takes ellmin, ellmax for Cls, and want_lensing
47-
ABC_ell, ABC_Cls = model.run_cosmology(params)
47+
ABC_Cls, ABC_ell = model.run_cosmology(params)
4848
ABC_tt = ABC_Cls[0]
4949
ABC_te = ABC_Cls[1]
5050
ABC_ee = ABC_Cls[2]

0 commit comments

Comments
 (0)