Skip to content

pairs

pairs #

The image-pairs scalar; a loaded Pairs is the .npz path.

Pairs #

Bases: NumpyScalar

Which images of an array to compare.

  • ab: image index pairs with a < b on every row and no row repeated.

Analysis-only: produced by a recipe, never captured, so it has no platform mirror and no place in a schema.

Source code in capturegraph-recipes/capturegraph_recipes/types/reconstruction/pairs.py
class Pairs(cg.NumpyScalar, name="edu.cornell.image_pairs"):
    """Which images of an array to compare.

    - ``ab``: image index pairs with ``a < b`` on every row and no row
      repeated.

    Analysis-only: produced by a recipe, never captured, so it has no platform
    mirror and no place in a schema.
    """

    __slots__ = ()

    analysis_only = True

    layout = {"ab": ("int32", (-1, 2))}