Qu

add_marker

Builtin index · Signal processing

add_marker(s, time, [label])

Input: s, time, label · Output: no output

What it is

Added in v0.2.4. Annotates an instant — an impact, a fault injection — at time seconds on the signal's own (origin-aware) axis. A time outside the signal is refused naming the span, because a marker outside the data it annotates is not an annotation. Markers are kept in time order.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
add_marker(s, time, [label])
s —Annotates an instant — an impact, a fault injection — at time seconds on the signal's own (origin-aware) axis.
time —Annotates an instant — an impact, a fault injection — at time seconds on the signal's own (origin-aware) axis.
label optionalnot documented yet
not documented yetAdded in v0.2.4.

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

add_marker(s, time, label) / markers(s) and add_region(s, start, end, label) / regions(s) -- §10's interactive-annotation counterpart, for marking an impact or a fault injection on a recording. A marker's time is checked against the signal's own span and an out-of-range one is refused. A marker that sits outside the data it annotates is not an annotation, and the alternative -- storing it and letting whatever draws the signal decide -- is how it would become invisible instead of wrong.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.