You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not sure what you have in mind exactly; let me clarify my view
IMO the events and metadata should in principle be a unique object, i.e. a
sparse time series. Historically, they have been built separately but they
should remain connected during e.g. drop_bad, epoch indexing etc.
The ideal case would be for metadata to be explicitly indexed by the event
onset (in raw sample, i.e. events[:,0]), but I *think* that would create
some backward incompatibilities.
The alternative is to link the events rows and the metadata iloc. One risk
I foresee with pd dataframes is the loc versus iloc indexing and the
reset_index mess, which could confuse users: dealing with pandas
indexing-related issues often require particular arguments to read and
write csv etc.
However, sparse time series / metadata are multidimensional (whereas events
is basically a unidimensional one hot encoder). We should thus allow
multiple events to start at the same time sample.
There are many cases where distinct events / dimensions of an event may
occur simultaneously: two distinct button presses in typing study, two
different words in an attention speech paradigm, during heavy decimation to
have a quick look etc. Dealing with the requirement in such cases is
painful, because it requires a non trivial find and arbitrary select
duplicate routine, which may be dependent on the subsequent analyses.
HTH
PS: no time for pr, apologies
IMO the events and metadata should in principle be a unique object, i.e. a
sparse time series. Historically, they have been built separately but they
should remain connected during e.g. drop_bad, epoch indexing etc.
The ideal case would be for metadata to be explicitly indexed by the event
onset (in raw sample, i.e. events[:,0]), but I *think* that would create
some backward incompatibilities.
that's what I meant with pandas indexing and yes it's not an option
and not what we decided together some years ago
The alternative is to link the events rows and the metadata iloc. One risk
I foresee with pd dataframes is the loc versus iloc indexing and the
reset_index mess, which could confuse users: dealing with pandas
indexing-related issues often require particular arguments to read and
write csv etc.
we decided that index is not used in metadata and that we rely on iloc
However, sparse time series / metadata are multidimensional (whereas events
is basically a unidimensional one hot encoder). We should thus allow
multiple events to start at the same time sample.
Activity
kingjr commentedon May 5, 2020
BTW, there should be an event_repeated='ignore' option.
It is common to have distinct events types which end up with simultaneous onsets e.g. :
In such cases I don't think there is a good reason to force users to build different
Epochsobjects for each event type.agramfort commentedon May 5, 2020
kingjr commentedon May 5, 2020
duplicate in terms of m/eeg, but not in terms of metadata
agramfort commentedon May 5, 2020
kingjr commentedon May 5, 2020
agramfort commentedon May 6, 2020