AnnotationBasis

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

AnnotationBasis()-> None

Base for the curves a path’s vertices may be regenerated from.

A basis is not a geometry: it is the fit the vertices came from, kept so the curve can be redrawn at any resolution. Editing vertices drops it, since they no longer describe the curve.

Every curve is stated in its dimensions’ own coordinates – a time is a time, a distance is a distance – so it is anchored without a separate origin and its vertices drop straight into the vertices frame. A curve parameterized in a dimension’s raw numbers would put an apex at 1.6e18 nanoseconds and a velocity in metres per nanosecond, which nobody can read, write or check.

Methods

Name Description
new Create new instance with some attributed updated.
vertices Return count points along the curve, keyed by dimension.