Annotation

class of dascore.core.annotations
inherits from: dascore.core.annotations._AnnotationModel, DascoreBaseModel, pydantic.main.BaseModel
source

Annotation(
    geometry: dascore.core.annotations.Region | dascore.core.annotations.Path | dascore.core.annotations.Polygon[Region, Path, Polygon] ,
    id: str = ““,
    group: str =”“,
    value: str | bool | int | float[str, bool, int, float] = True,
    tags: tuple[str, …] = (),
    parent: str =”“,
    acquisition_key: str =”“,
    extra: collections.abc.Mapping[str, Any] = ,
)-> None

One annotation: a geometry, what it says, and who it belongs to.

Instances are a view of a row of an AnnotationSet, built on demand rather than held.