updated eeglab.py to account for SET files that contain trials but no… #12704
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference issue
No issue
What does this implement/fix?
This pull request implements a robust method for handling EEGLAB files that contain epoched data but lack explicit event information. Specifically:
generate_boundary_events
that creates synthetic boundary events for epoched data without events.create_events_from_eeglab
function to use this new method when appropriate.These changes allow MNE to properly process EEGLAB files that have been epoched but have lost their event information during preprocessing or export. This is particularly useful for researchers working with legacy datasets or those using EEGLAB processing pipelines that may not preserve event information in all cases.
Additional information
generate_boundary_events
function to account for this.