AnnotationBasis

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

AnnotationBasis()-> None

Base for the curves a path may be drawn from.

A basis is not a geometry: it is a model a path’s members came from, or the whole path where it has no members, sampled at any resolution.

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 samples are annotation coordinates as they are. A curve parameterized in a dimension’s raw numbers would put an apex at 1.6e18 nanoseconds and a velocity in meters per nanosecond, which nobody can read, write or check.

Methods

Name Description
extent Return the curve’s exact lowest and highest value per dimension.
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.
vertices Return count points along the curve, keyed by dimension.