Open scott-huberty opened 9 months ago
Yeah we could add them. I think we get them for free (maybe?) if we do:
def __init__(self, ...)
...
self._onset, self._duration, ... = ...
@property
def onset(self):
"""..."""
return self._onset
@onset.setter
def onset(self, onset)
self._onset[:] = onset
Or something like this
Ok I'll test it out and open a PR when I have some time.
(Still thinking these should all be pluralized but this is a different discussion I suppose)
Proposed documentation enhancement
A colleague of mine who is a bit of an MNE power user had no idea that you can do something like
raw.annotations.onset
to retrieve an array of the onsets of all individual annotations:As far as I can tell we don't document the
onset
,duration
,description
attributes in the API documentation. Should we?