Skip to main content

yet_another_wizz

PyPI GitHub Workflow Status codecov Template

pz-rail-yaw

This is a wrapper to integrate the clustering redshift code yet_another_wizz (YAW) into RAIL:

Original publication: https://arxiv.org/abs/2007.01846

Installation

This package can be either installed with the RAIL base package (recommended) or explicitly with

pip install pz-rail-yaw

About this wrapper

The wrapper closely resembles the structure and functionality of YAW by implementing four different RAIL stages:

  • YawCacheCreate, which implements the spatial patches of YAW data catalogues,
  • YawAutoCorrelate/YawCrossCorrelate, which implement the expensive pair counting of the correlation measurements, and
  • YawSummarize, which transforms the pair counts to a redshift estimate with an optional mitigation for galaxy sample bias.

The repository includes an extensive example notebook

examples/full_example.ipynb

with further documentation and an example ceci pipeline

src/rail/pipelines/estimation/yaw_pipeline.yml

for procesing large and/or more complex data sets.

Fitting the correlation amplitude

YAW can measure the correlation amplitude in more than one radial bin. Both correlate stages accept a sequence of scale limits for rmin/rmax and default to 24 logarithmic bins between 30 kpc and 30 Mpc. Two further stages turn these measurements into a redshift estimate:

  • YawFitAmplitude fits the amplitudes measured in the radial bins against a model for the angular matter correlation function w_mm, computed with CCL, in every redshift bin: w(r) ~ A * w_mm(r), optionally with an additive constant. Repeating the fit for every jackknife sample yields the uncertainty. Its output is the clustering redshift measurement of one tomographic bin and one reference tracer.
  • YawNzCombine forms n_cc = A_sp / sqrt(A_ss) / b_p and combines the estimates of several reference tracers by inverse-variance weighting. The tracers may cover different, partially overlapping redshift ranges, but their binning must coincide where the ranges overlap. The bias evolution b_p of the unknown sample defaults to 1 / D(z).

Since a RAIL stage declares its inputs statically, the summarizer is created for a given set of tracers with create_yaw_nz_combine, which adds one input per tracer. Call it at the top level of the module that defines your pipeline, so that ceci can recreate the stage in its subprocesses:

YawNzCombineTracers = create_yaw_nz_combine(["bgs", "lrg"])

An example ceci pipeline covering this path is

src/rail/pipelines/estimation/yaw_nz_pipeline.yml

Note: the matter model defaults to the eisenstein_hu transfer function, so that it works without an external Boltzmann solver. Set transfer_function="boltzmann_camb" (CCL's own default) if camb is installed.

rail_yaw_network

RAIL: Redshift Assessment Infrastructure Layers

This package is part of the larger ecosystem of Photometric Redshifts in RAIL.

Citing RAIL

This code, while public on GitHub, has not yet been released by DESC and is still under active development. Our release of v1.0 will be accompanied by a journal paper describing the development and validation of RAIL.

If you make use of the ideas or software in RAIL, please cite the repository https://github.com/LSSTDESC/RAIL. You are welcome to re-use the code, which is open source and available under terms consistent with the MIT license.

External contributors and DESC members wishing to use RAIL for non-DESC projects should consult with the Photometric Redshifts (PZ) Working Group conveners, ideally before the work has started, but definitely before any publication or posting of the work to the arXiv.

Citing this package

If you use this package, you should also cite the appropriate papers for each code used. A list of such codes is included in the Citing RAIL section of the main RAIL Read The Docs page.

Metadata

Release files for pz-rail-yaw 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pz-rail-yaw 2.1.0
File Size Uploaded Provenance Actions
pz_rail_yaw-2.1.0.tar.gz 1.0 MB With provenance Details for pz_rail_yaw-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pz-rail-yaw 2.1.0
File Interpreter ABI Platform Actions
pz_rail_yaw-2.1.0-py3-none-any.whl Python 3 none any Details for pz_rail_yaw-2.1.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / pz_rail_yaw-2.1.0.tar.gz

Download URL pz_rail_yaw-2.1.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
2db5a01068b4fc9b73a47d73759d60fe713a7108a5a3315c0a0ee30de00c2e5d
BLAKE2b-256 checksum
How to use checksums
3a92c2e667b87acd5113d52d4488e0c309c037cf019c725271e79fe646f04dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / pz_rail_yaw-2.1.0-py3-none-any.whl

Download URL pz_rail_yaw-2.1.0-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8f5a2325782d48cec016f85f40f6124ffdbbf3bf57694e8c1069ac24be1a736
BLAKE2b-256 checksum
How to use checksums
35ed76b42cca003c462c10f238aa621a0d22efcee69d4ce70ea54296fcd2d678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for pz-rail-yaw 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pz_rail_yaw-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page