uwacan.recordings.TimeCompensation#

class TimeCompensation(actual_time, recorded_time)[source]#

Bases: object

Compensates time drift and offset in a recording.

This is based on the actual and recorded time of one or more events. These have to be detected elsewhere, and the times for them are given here to build the model. If a single pair of times is given, the offset between them is used to compensate. If multiple pairs are given, the offset will be linearly interpolated between them.

Parameters:
actual_timetime_like or [time_like]

Actual time for synchronization event(s).

recorded_timetime_like or [time_like]

Recorded time for synchronization event(s).

Methods

actual_to_recorded(actual_time)

Convert an actual time to the time recorded.

recorded_to_actual(recorded_time)

Convert a recorded time to the actual time.

Inherited methods