designspace.QuantizedSpec#

class designspace.QuantizedSpec(step: float | None, factor: float | None, include_hi: bool = False)#

Bases: object

A grid restricting a numeric domain, set by .quantized().

step#

Spacing of an arithmetic grid, or None if the grid is geometric.

Type:

float | None

factor#

Ratio of a geometric grid, or None if the grid is arithmetic.

Type:

float | None

include_hi#

Whether the domain’s upper bound is a grid point even when the spacing would not land on it.

Type:

bool