Skip to main content
Version: Next

ts_shape.eventlog.concat

Concatenate multiple :class:EventLog instances into one.

Functions
NameDescription
concatConcatenate several event logs into one.

concat​

functionsource
concat(*logs: EventLog) -> EventLog

Concatenate several event logs into one.

Each table is concatenated, then deduplicated: objects by (oid, type), events by event id (after sorting by timestamp), relations by (eid, oid, type, qualifier), object-to-object links by (oid, oid_2, qualifier), and object changes by (oid, type, field, timestamp). An object id used by two types is two objects, so their changes are kept apart; one event linked to one object in two roles keeps both relations.

Parameters
NameTypeDescriptionDefault
*logsEventLogEvent logs to combine.()
Returns
TypeDescription
EventLogA new EventLog; an empty EventLog when no logs are given.