What’s new?#
Version 0.15 (2024-06-04)#
Detailed list of changes#
🚀 Enhancements#
Including a description for
onsetanddurationin theevents.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, Ifrun=1is passed to MNE-BIDS, it will no longer be silently auto-converted torun-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-convertedfto`.edf, by Alex Rockhill (#1215)MNE-BIDS will no longer error during
write_raw_bidsif there areBAD_ACQ_SKIPannotations in the raw file and no corresponding key inevent_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.
edfioreplacesEDFlib-Pythonfor export to EDF with MNE-Python >= 1.7.0.Installing
mne-bids[full]will now also installdefusedxmlon 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 nowpandas.Int64Dtypeinstead offloat64, 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 standardpyproject.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
setuptoolstohatchling. 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 fromwrite_raw_bids()in favor ofevents, by Stefan Appelhoff (#1229)