uwacan._core.TimeWindow#
- class TimeWindow(start=None, stop=None, center=None, duration=None, extend=None)[source]#
Bases:
objectDescribes 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
centerThe center of this window.
durationThe duration of this window, in seconds.
startThe start of this window.
stopThe stop of this window.