src.eventlist

Created on Wed Apr 24 09:52:47 2024

@author: jsatuit

Classes

TimedEvent

EventList

List of timed events. Inherits from UserList to be able to use base

Module Contents

class src.eventlist.TimedEvent(time, event)
Parameters:

time (float)

time
event
__lt__(other)
__str__()
__repr__()
class src.eventlist.EventList(initlist=None)

Bases: collections.UserList

List of timed events. Inherits from UserList to be able to use base list functions

__setitem__(index, value)
insert(index, value)

S.insert(index, value) – insert value before index

listof(attr)

Return list of the attribute attr of each TimeInterval.

See other functions for examples.

Parameters:

attr (str)

property times: list[float]

list with the time of each TimedEvent

Return type:

list[float]

property events: list[float]

list of all events. That are all TimeEvent.events.

Return type:

list[float]