API Reference¶
The Pollux package is organized into the following core modules:
- Reader
- Footprint
- Map Builder
- Shells
- Lensing
- Baryons
- Catalog
- Intrinsic alignments
- Statistics
- Cosmology
- Utils
quad()powspace()arange_endpoint()trim()split_bins()trunc_norm()subsample_ppf()sample_pdf()radec2thetaphi()thetaphi2radec()spin2_factor()make_healpix_map()make_mask_radec_cuts()generate_radec_in_pix()binning_id()make_nmtbin()make_nmtbin_logspaced()make_nmtbin_linspaced()make_nmtbin_powspaced()read_fits_rows()
- I/O
- Pipeline
construct_shell_sub()combine_shell_subs()plot_shell_maps()compute_padding()compute_wsp()construct_halo_catalog()construct_baryonified_shell()construct_kappa_map()compute_kappa_alms()plot_kappa_maps()compute_shell_alms()compute_shear_maps()compute_tidal_maps()compute_smoothed_density_map()compute_smoothed_kappa_map()smoothing_plan()catalog_map_tasks()construct_catalog()construct_catalog_shell()merge_catalog()compute_shell_cls_sub()compute_shell_cls()plot_shell_cls()compute_kappa_cls_sub()compute_kappa_cls()plot_kappa_cls()pair_groups_2pt()compute_catalog_2pt_sub()compute_catalog_2pt()plot_catalog_2pt()compute_catalog_cls_wsp()compute_catalog_alms()compute_catalog_cls_sub()compute_catalog_cls()plot_catalog_cls()EXECUTOR_LABELSEXECUTORSGuardedHighThroughputExecutorGracePeriodSlurmProviderread_run_config()perlmutter_config()get_config()local_config()check_labels()retry_handler()parse_args()CanaryRunGuardrun_tasks()task_table()failures()main()
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) andconfig.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.