Scale#

class uvex_transients.phase_space.sampling.base.Scale(name: str, function: Callable[[NDArray], ArrayLike], label: str = '', unit: str = '', draw: bool = False)[source]#

A quantity of the point alone, which does not involve the success fraction.

A redshift limit, a coverage or a volume-time is a Scale: it follows from the physics at the point, with no Monte Carlo, and so has no interval.

Parameters:
  • name (str) – The name of the product, and of its one column.

  • function (callable) – function(x) takes points of shape (..., ndim) and returns the quantity, of shape (...).

  • label (optional) – As for Product.

  • unit (optional) – As for Product.

  • draw (optional) – As for Product.

Methods

Attributes

draw

Whether the default figure has a panel for the quantity.

name

The name of the product, and of its main column.

label

What a figure calls the quantity.

unit

The unit of the quantity.