API Reference

The Pollux package is organized into the following core modules:

Module Descriptions

Reader (pollux.reader)

Interfaces with N-body simulation snapshots (HACC, SLICS) and provides particle data for lightcone construction.

Footprint (pollux.footprint)

Footprint of the maps: mask, padded mask and weights of the harmonic transforms, shared by the builders.

Map Builder (pollux.map_builder)

Abstract base classes for building HealSparse maps from simulation data, with I/O and spherical harmonic transform support.

Shells (pollux.shells)

Builds particle and halo lightcone shells with replicated boxes and random isometries (translations, rotations, flips).

Lensing (pollux.lensing)

Generates weak lensing maps in the Born approximation with tomographic support.

Baryons (pollux.baryons)

Baryonifies shells with BaryonForge, and computes the matching correction of the matter power spectrum.

Catalog (pollux.catalog)

Generates tomographic galaxy catalogs from lightcone shells using uniform or clustered sampling methods, measures their statistics and predicts them.

Statistics (pollux.statistics)

Power spectra and moments of the maps, and two-point statistics of the catalogs, with their predictions and plots (pollux.statistics.plotting): mixins inherited by the map builders and catalogs.

Intrinsic alignments (pollux.ia)

Catalog augmentor adding intrinsic alignments to the galaxies, from the tidal field of their shell.

Utils (pollux.utils)

Helper functions, by theme: numerics (integration, grids, sampling), sky (coordinates, maps of points, masks), NaMaster binnings and FITS tables (reading chosen rows).

Cosmology (pollux.cosmo)

Fixed cosmologies, tracers of observable fields and their theory predictions.

I/O (pollux.io)

Products on disk, without the dependencies of the builders (NaMaster, TreeCorr, BaryonForge, Parsl): their files (pollux.io.PolluxIO, pollux.io.files: paths, configurations and files by format) and config.yaml (pollux.io.config), the code version of runs (pollux.io.code_version), their index (python -m pollux.io.index ROOT) and loader (pollux.io.PolluxLoader).

Pipeline (pollux.pipeline)

Parsl tasks and execution configuration, see Running the pipeline.