uwacan.TimeWindow#

class TimeWindow(start=None, stop=None, center=None, duration=None, extend=None)[source]#

Bases: object

Describes a start and stop point in time.

Give two and only two of the four basic parameters. Less than two will not fully define a window, while more than two will overdetermine the window.

Parameters:
starttime_like

A window that starts at this time

stoptime_like

A window stat stops at this time

centertime_like

A window centered at this time

durationfloat

A window with this duration, in seconds

extendfloat

Extend the window defined by two of the four above with this much at each end, in seconds.

Methods

subwindow([time, start, stop, center, ...])

Select a smaller window of time.

Inherited methods

Attributes

center

The center of this window.

duration

The duration of this window, in seconds.

start

The start of this window.

stop

The stop of this window.