braindecode Contributions
PR #941
Add mapping, preload, picks, drop_bad_windows, and descriptions support to create_from_mne_epochs
Merged Mar 2026
  • Implemented mapping to remap integer event codes to target values, consistent with the raw-based API
  • Forwarded preload and picks to the internal mne.Epochs call for memory and channel control
  • Introduced drop_bad_windows to conditionally call .drop_bad() on resulting epochs
  • Supported descriptions with length validation to attach per-dataset metadata, matching create_from_mne_raw() behavior
  • All parameters default to None/False/True preserving full backward compatibility
  • Covered all five new parameters with parametrized pytest tests using shared fixtures
View Pull Request ↗