Simple class to define properties of an event.
The class is basically a dictionary. Any properties can be passed as keyword arguments to the constructor, e.g.:
>>> ev = Event(onset=12, duration=2.45)
Conventions for keys:
Parameters : | **kwargs : dict
|
---|
Convert onset and duration information into descrete timepoints.
Parameters : | dt : float
storeoffset : bool
offsetattr : str
|
---|---|
Returns : | A copy of the original `Event` with `onset` and optionally `duration` : replaced by their corresponding descrete timepoint. The new onset will : correspond to the timepoint just before or exactly at the original : onset. The new duration will be the number of timepoints covering the : event from the computed onset timepoint till the timepoint exactly at : the end, or just after the event. : Note again, that the new values are expressed as #timepoint and not : in their original unit! : |