-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handling of simultaneous events by plot_event #3948
Comments
Indeed. But is this really needed ? I guess that people avoid having simultaneous events in general ? Just worried about yagni
Could be a good idea indeed. |
Yes |
If this needed(?) |
Agreed that this falls in the overkill category and that most events file in fmri are (unfortunately) not as rich as those from EEG.
Will PR this after #3884 to keep PR small
Probably another small PR
probably not unless users ask for it |
Other "problems" with
plot_event
that I am encountering while working on #3884.if 2 events have different trial_type but same onset and duration, then only the last one plotted is visible as it is overlayed over the other one
design matrix creation will sum the amplitude of 2 "duplicated" events (same trial type, onset, duration), however this won't be apparent when just using the plot_event function.
(1) Could be solved but may require plotting events on several "rows" (one per condition).
(2) May be the intended behavior, but if not this could probably be easily solved by running
check_events
on the input ofplot_event
(which may also help with some of the input validation that is missing from this function in anycase: for example, no checking that the required columns are there, do not have NaNs...)Notes:
I do find it confusing that a function called
check_events
takes care of summing the modulation of the events duplicates: this behavior should probably extracted in a separate functionalthough a warning is sent when events duplicates are detected, it may be more user friendly to have the possibility to drop duplicated events rather than sum their modulation
The text was updated successfully, but these errors were encountered: