EventKind
What a stored entry in an event-based label row asserts from its frame onward. An event-based row (a continuous scene, see :attr:~encord.objects.LabelRowV2.is_event_based) stores sparse
events at nanosecond offsets rather than labels on a frame grid:
"upsert": the object exists with this geometry until its next event. An untagged entry reads as an upsert."delete": the object does not exist until a later upsert. Carries placeholder geometry nobody reads.
LabelUpsertEvent Objects
frame until its next event.
LabelDeleteEvent Objects
frame until a later upsert.
A delete carries no geometry, there are no coordinates to read.
LabelEvent
One stored event: narrow onkind, or with isinstance, to reach an upsert’s coordinates.
resolve_event_at
frame, or None where the object does not exist.
Arguments:
events- The object’s events sorted by frame ascending.frame- The frame to resolve.
frame, unless the last event at or before frame is a delete.
check_events_terminated
events- The object’s stored events, sorted by frame ascending.object_hash- The object the events belong to, named in the error.
LabelRowError- If the events end on an upsert.
event_ranges
events- The object’s events sorted by frame ascending.
LabelRowError- If the events end on an upsert, leaving a range with no closing delete.
events_intersect
[start, end] (both inclusive).
Arguments:
events- The object’s events sorted by frame ascending.start- First frame of the window.end- Last frame of the window.
LabelRowError- If the events end on an upsert, leaving a range with no closing delete.
prune_dangling_deletes
events- The object’s events sorted by frame ascending.

