Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Jan 24, 2025
1 parent 6badbf2 commit 8ef26c4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/angst/grf.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,16 @@ def compute_generic(
Examples
--------
Compute a Gaussian angular power spectrum for a lognormal
transformation using the *healpy* spherical harmonic transform.
>>> import healpy as hp
>>> tfm = angst.grf.Lognormal()
>>> gl = angst.grf.compute_sht(
... cl,
... tfm,
... lambda m, lmax: hp.map2alm(m, lmax=lmax, use_pixel_weights=True),
... lambda alm: hp.alm2map(alm, 2048),
... )
transformation using the ``healpy`` spherical harmonic transform::
import healpy as hp
gl = angst.grf.compute_generic(
cl,
tfm,
lambda m, lmax: hp.map2alm(m, lmax=lmax, use_pixel_weights=True),
lambda alm: hp.alm2map(alm, 2048),
)
"""

Expand Down

0 comments on commit 8ef26c4

Please sign in to comment.