OpticalPathLabel

class of dascore.core.inventory
inherits from: dascore.core.inventory._IntervalModel, InventoryModel, RichRepr, DascoreBaseModel, pydantic.main.BaseModel
source

OpticalPathLabel(
    description: str = ““,
    extra_fields: collections.abc.Mapping[str, str | int | float | bool[str, int, float, bool]] = ,
    distance_min: float ,
    distance_max: float ,
    group: str =”“,
    value: str | int | float | None = None,
)-> None

Label attached to an interval of an optical path.

group names the variable and value is its state over the interval. A label with no value states membership, and membership groups may overlap freely; a label with a value makes its group single valued, so string and numeric groups may not overlap. A group states membership or holds one kind of value, never both. Point markers (equal start and end) cover nothing and are exempt from the overlap rule.