What’s new?#
Version 0.15 (2024-06-04)#
Detailed list of changes#
🚀 Enhancements#
- Including a description for - onsetand- durationin the- events.jsonfile, by Julius Welzel (#1255)
🧐 API and behavior changes#
- The experimental support for running MNE-BIDS examples from your browser using Binder has been removed, by Stefan Appelhoff (#1202) 
- MNE-BIDS will no longer zero-pad (“zfill”) entity indices passed to - BIDSPath. For example, If- run=1is passed to MNE-BIDS, it will no longer be silently auto-converted to- run-01, by Alex Rockhill (#1215)
- MNE-BIDS will no longer warn about missing leading punctuation marks for extensions passed - BIDSPath. For example, MNE-BIDS will now silently auto-convert- edfto- `.edf, by Alex Rockhill (#1215)
- MNE-BIDS will no longer error during - write_raw_bidsif there are- BAD_ACQ_SKIPannotations in the raw file and no corresponding key in- event_id. Instead, it will automatically add the necessary key and assign an unused integer event code to it. By Daniel McCloy (#1258)
🛠 Requirements#
- MNE-BIDS now requires Python 3.9 or higher. 
- MNE-BIDS now requires MNE-Python 1.5.0 or higher. 
- edfioreplaces- EDFlib-Pythonfor export to EDF with MNE-Python >= 1.7.0.
- Installing - mne-bids[full]will now also install- defusedxmlon all platforms.
- Version requirements for optional dependency packages have been bumped up, see installation instructions. 
🪲 Bug fixes#
- The datatype in the dataframe returned by - mne_bids.stats.count_events()is now- pandas.Int64Dtypeinstead of- float64, by Eric Larson (#1227)
- The - mne_bids.copyfiles.copyfile_ctf()now accounts for files with- .{integer}_meg4extension, instead of only .meg4, when renaming the files of a .ds folder, by Mara Wolter (#1230)
- We fixed handling of time zones when reading - *_scans.tsvfiles; specifically, non-UTC timestamps are now processed correctly, by Stefan Appelhoff and Richard Höchenberger (#1240)
⚕️ Code health#
- The configuration of MNE-BIDS has been consolidated from several files (e.g., - setup.cfg,- setup.py,- requirements.txt) and is now specified in a standard- pyproject.tomlfile, by Stefan Appelhoff (#1202)
- Linting and code formatting is now done entirely using - ruff. Previously used tools (e.g.,- flake8,- black) have been fully replaced, by Stefan Appelhoff (#1203)
- The package build backend has been switched from - setuptoolsto- hatchling. This only affects users who build and install MNE-BIDS from source, and should not lead to changed runtime behavior, by Richard Höchenberger (#1204)
- Display of the version number on the website is now truncated for over-long version strings, by Daniel McCloy (#1206) 
- The long deprecated - events_dataparameter has been fully removed from- write_raw_bids()in favor of- events, by Stefan Appelhoff (#1229)