What’s new?¶
Version 0.7¶
This release brings numerous enhancements and bug fixes that enhance reading and writing BIDS data, and improve compatibility with the latest BIDS specifications.
Notable changes¶
Channel names in
*_channels.tsvand*_electrodes.tsvfiles now always take precedence over the names stored in the raw files.When reading data where the same trial type refers to different trigger values, we will now automatically create hierarchical event names in the form of
trial_type/value1, trial_type/value2` etc.mne_bids.write_raw_bids()now allows users to specify a format conversion via the newformatparameter.Various improvements to data reading and
mne_bids.BIDSPathmake working with real-life data easier.Many bug fixes in
mne_bids.write_raw_bids()and in the MNE-BIDS Inspector.
Authors¶
Detailed list of changes¶
Enhancements¶
Some datasets out in the real world have a non-standard
stim_typeinstead of atrial_typecolumn in*_events.tsv.mne_bids.read_raw_bids()now makes use of this column, and emits a warning, encouraging users to rename it, by Richard Höchenberger (#680)When reading data where the same event name or trial type refers to different event or trigger values, we will now create a hierarchical event name in the form of
trial_type/value, e.g.stimulus/110, by Richard Höchenberger (#688)When reading data via
mne_bids.read_raw_bids(), the channel names specified in the BIDS*_channels.tsvand*_electrodes.tsvfiles now always take precedence over (and do not need to match) the channel names stored in the raw files anymore, by Adam Li and Richard Höchenberger (#691, #704)Improve the
Convert iEEG data to BIDStutorial to include a note on how BIDS and MNE-Python coordinate frames are handled, by Adam Li (#717)More detailed error messages when trying to write modified data via
mne_bids.write_raw_bids(), by Richard Höchenberger (#719)If
check=True,mne_bids.BIDSPathnow checks thespaceentity to be valid according to BIDS specification Appendix VIII, by Stefan Appelhoff (#724)Data types that are currently unsupported by MNE-BIDS (e.g.
dwi,func) can now be used inmne_bids.BIDSPathby settingcheck=False, by Adam Li (#744)Arbitrary file names can now be represented as a BIDSPath` by passing the entire name as
suffixand settingcheck=False, by Adam Li (#729)Add support for MNE’s flux excitation channel (
exci), by Maximilien Chaumon (#728)mne_bids.BIDSPath.match()gained a new parametercheck; when settingcheck=True,match()will only return paths that conform to BIDS, by Richard Höchenberger (#726)BIDSPath.rootnow automatically expands~to the user’s home directory, by Richard Höchenberger (#725)
API and behavior changes¶
Add
formatkwarg tomne_bids.write_raw_bids()that allows users to specify if they want to force conversion toBrainVisionorFIFfile format, by Adam Li (#672)mne_bids.read_raw_bids()now stores theparticipant_idvalue fromparticipants.tsvinraw.info['subject_info']['his_id'], not inraw.info['subject_info']['participant_id']anymore, by Richard Höchenberger (#745)
Requirements¶
Bug fixes¶
Fix writing MEGIN Triux files, by Alexandre Gramfort (#674)
Anonymization of EDF files in
write_raw_bids()will now convert recording date to01-01-1985 00:00:00if anonymization takes place, while setting the recording date in thescans.tsvfile to the anonymized date, thus making the file EDF/EDFBrowser compliant, by Adam Li (#669)mne_bids.write_raw_bids()will not overwrite an existingcoordsystem.jsonanymore, unless explicitly requested, by Adam Li (#675)mne_bids.read_raw_bids()now properly handles datasets without event descriptions, by Richard Höchenberger (#680)mne_bids.stats.count_events()now handles files without atrial_typeorstim_typecolumn gracefully, by Richard Höchenberger (#682)mne_bids.read_raw_bids()now correctly treatscoordsystem.jsonas optional for EEG and MEG data, by Diego Lozano-Soldevilla (#691)mne_bids.read_raw_bids()now ignoresexcludeparameters passed viaextra_params, by Richard Höchenberger (#703)mne_bids.write_raw_bids()now retains original event IDs in thevaluecolumn of*_events.tsv, by Richard Höchenberger (#708)Fix writing correct
iEEGCoordinateSystemDescription, by Stefan Appelhoff (#706)FIF files that were split due to filesize limitations (using the
_split-<label>entity), are now all listed inscans.tsv, as recommended by BIDS, by Eduard Ort (#710)The
mne_bids inspectcommand now automatically tries to discover flat channels by default; this should have been the case all along, but the default parameter was set incorrectly, by Richard Höchenberger (#726)mne_bids.inspect_dataset()would sometimes open the same file multiple times, by Richard Höchenberger (#726)mne_bids.inspect_dataset()would try to open the SSP projector selection window for non-MEG data, by Richard Höchenberger (#726)