Event

class vallenae.processor.Event(hits, close_reason)[source]

Event data set produced by the EventBuilder.

An event represents the group of hits assigned to one acoustic-emission source by the Event Builder. Hits are time-sorted and the first hit (hits[0]) is always the Start-of-Event (SoE).

__init__(hits, close_reason)

Methods

__init__(hits, close_reason)

Attributes

channel_sequence

Channels in the order they were hit (1.CH..n.CH in VisualAE).

dt_to_first

Time differences between the first hit and each subsequent hit in seconds.

first_hit_channel

First-hit channel (1.CH in VisualAE), equal to hits[0].channel.

time

Time of the Start-of-Event in seconds (= hits[0].time).

hits

Hits assigned to this event, time-sorted; hits[0] is the SoE.

close_reason

Why the event was closed.

hits: list[HitRecord]

Hits assigned to this event, time-sorted; hits[0] is the SoE.

close_reason: EventCloseReason

Why the event was closed.

property time: float

Time of the Start-of-Event in seconds (= hits[0].time).

property first_hit_channel: int

First-hit channel (1.CH in VisualAE), equal to hits[0].channel.

property channel_sequence: list[int]

Channels in the order they were hit (1.CH..n.CH in VisualAE).

property dt_to_first: list[float]

Time differences between the first hit and each subsequent hit in seconds.

Corresponds to VisualAE’s DT12..DT1n. Length is len(hits) - 1 (empty for a single-hit event).