Skip to content

Commit 5df0743

Browse files
tmcornishdamonge
andauthored
Catalog deprojection (#236)
* implemented, not tested * implemented, semi-tested in notebook * bug in ducc SHTs for low ell_max * another potential lmax_deproj bug * more proper fix * trying to fix gha * fixed tests * Attempt to fix macos tests * Revert to previous commit * Try compiling with clang on macOS * C compiler back to gcc, now targets older OS X version * Try using Xcode_16.4.0 * Revert to "fixed tests" * Check alignment of problem struct * Revert to previous commit * Change alignment of all CTest symbols to 8 bytes * added tests * Added documentation for new arguments in NmtFieldCatalogClustering * notebook added * docs done * updated README/CHANGELOD/version number * docs for get_noise_deprojection_bias * missing tutorial in docs config * tutorial was blank --------- Co-authored-by: damonge <[email protected]>
1 parent 8b2701e commit 5df0743

File tree

13 files changed

+9429
-214
lines changed

13 files changed

+9429
-214
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ jobs:
8585
run: |
8686
sudo -H apt-get install libcfitsio-dev libfftw3-dev libgsl-dev
8787
88+
- name: Install other dependencies (ubuntu)
89+
if: matrix.label == 'linux-64'
90+
run: |
91+
conda install healpy
92+
8893
- name: Install other dependencies (mac)
8994
if: matrix.label == 'osx-64'
9095
run: |
@@ -112,7 +117,7 @@ jobs:
112117
if: matrix.label == 'osx-64'
113118
run: |
114119
# After migrating to Xcode 15.4, a bunch of things broke, for whatever reason...
115-
sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
120+
# sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
116121
# Without the prefixes, it won't compile on mac
117122
CC=gcc-14 LDFLAGS=-L/opt/homebrew/lib CPPFLAGS=-I/opt/homebrew/include python -m pip install .
118123

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v2.5
2+
- Implementation of mode deprojection for catalog fields complete (#236)
3+
14
# v2.4
25
- Mode deprojection enabled for `NmtFieldCatalogClustering` fields (#227)
36

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# NaMaster
2-
[![Build Status](https://travis-ci.org/LSSTDESC/NaMaster.svg?branch=master)](https://travis-ci.org/LSSTDESC/NaMaster)
2+
[![Build status](https://github.com/LSSTDESC/NaMaster/actions/workflows/ci.yml/badge.svg)](https://github.com/LSSTDESC/NaMaster/actions/workflows/ci.yml)
33
[![Docs Status](https://readthedocs.org/projects/namaster/badge/?version=latest)](http://namaster.readthedocs.io/)
44
[![Coverage Status](https://coveralls.io/repos/github/LSSTDESC/NaMaster/badge.svg?branch=master)](https://coveralls.io/github/LSSTDESC/NaMaster?branch=master)
55

6-
NaMaster is a C library, Python module and standalone program to compute full-sky angular cross-power spectra of masked fields with arbitrary spin and an arbitrary number of known contaminants using a pseudo-Cl (aka MASTER) approach. The code also implements E/B-mode purification and is available in both full-sky and flat-sky modes.
6+
NaMaster is a Python module to compute full-sky angular cross-power spectra of masked fields with arbitrary spin and an arbitrary number of known contaminants using a pseudo-Cl (aka MASTER) approach. The code also implements E/B-mode purification and is available in both full-sky and flat-sky modes, as well as supporting fields defined at the discrete positions of catalog sources.
77

88

99
## Installation
@@ -45,14 +45,14 @@ You can check that the python installation works by running the unit tests:
4545
```
4646
pytest -vv pymaster
4747
```
48-
Note that the `test` directory, containing all unit tests, also contains all the sample python scripts described in the [documentation](https://namaster.readthedocs.io).
48+
Note that the `test` directory contains all the sample python scripts described in the [documentation](https://namaster.readthedocs.io). The tutorial notebooks are inside the `doc` directory. The unit tests themselves are in `pymaster/tests/`.
4949

5050
If you installed `pymaster` via `pip`, you can uninstall everything by running
5151
```
5252
pip uninstall pymaster
5353
```
5454

55-
***Note that the C library is automatically compiled when installing the python module.*** If you care about the C library at all, or you have trouble compiling it, see the next section.
55+
***Note that the C library underlying NaMaster is automatically compiled when installing the python module.*** If you care about the C library at all, or you have trouble compiling it, see the next section.
5656

5757
### 3. Install the C code (optional)
5858
The script `scripts/install_libnmt.sh` contains the instructions run by `setup.py` to compile the C library (`libnmt.a`). You may have to edit this file or make sure to include any missing compilation flags if `setup.py` encounters issues compiling the library.

0 commit comments

Comments
 (0)