diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 15d2118..9bdb60e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -55,7 +55,7 @@ jobs: - name: Report Coverage (codecov) if: matrix.os == 'ubuntu-latest' - uses: codecov/codecov-action@v6 + uses: codecov/codecov-action@v7 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/pspy/sph_tools.py b/pspy/sph_tools.py index 2a95845..b076040 100644 --- a/pspy/sph_tools.py +++ b/pspy/sph_tools.py @@ -187,7 +187,7 @@ def show_alm_triangle( xlims=None, ylims=None, title="Triangle", fig_file=None): - """ + r""" This routine is from the spt3g data release https://pole.uchicago.edu/public/data/quan26/index.html Parameters diff --git a/pspy/tests/test_pspy_namaster.py b/pspy/tests/test_pspy_namaster.py index 607a23c..ab1b0a8 100644 --- a/pspy/tests/test_pspy_namaster.py +++ b/pspy/tests/test_pspy_namaster.py @@ -84,8 +84,11 @@ def run_pspy(pure=False): mbb_inv, Bbl = so_mcm.mcm_and_bbl_spin0and2( window, binning_file, lmax=lmax, type="Cl", niter=niter, pure=pure ) - get_alms = sph_tools.get_pure_alms if pure else sph_tools.get_alms - alms = get_alms(cmb, window, niter=niter, lmax=lmax) + if pure: + spinned_windows = so_window.get_spinned_windows(window[0], lmax, niter) + alms = sph_tools.get_pure_alms(cmb, window, spinned_windows, niter=niter, lmax=lmax) + else: + alms = sph_tools.get_alms(cmb, window, niter=niter, lmax=lmax) ell, ps = so_spectra.get_spectra(alms, spectra=spectra) lb, Clb = so_spectra.bin_spectra( ell, ps, binning_file, lmax, type="Cl", mbb_inv=mbb_inv, spectra=spectra