Version 1.9.0.dev59+ged933b8d9 (development) (2024-10-03)#
Dependencies#
Importing from
mne.decoding
now explicitly requiresscikit-learn
to be installed, by Eric Larson. (#12834)
Bugfixes#
Fix handling of MRI file-path in
mne.SourceSpaces
and safeguard saving ofpathlib.Path
withh5io
by casting tostr
, by Mathieu Scheltienne. (#12803)Cast
fwd["info"]
toInfo
andfwd["src"]
toSourceSpaces
when loading a forward solution from an HDF5 file, by Mathieu Scheltienne. (#12804)Fix bug where
mne.Epochs.compute_tfr()
could not be used with the multitaper method and complex or phase outputs, by Thomas Binns. (#12842)Fixed a bug where split FIF files that were read and then appended to other
mne.io.Raw
instances had theirBAD boundary
annotations incorrectly offset in samples by the number of split files, by Eric Larson. (#12843)Enforce SI units for Eyetracking data (eyegaze data should be radians of visual angle, not pixels. Pupil size data should be meters). Updated tutorials so demonstrate how to convert data to SI units before analyses, by Scott Huberty. (#12846)
Prevent the
colorbar
parameter being ignored in topomap plots such asmne.time_frequency.Spectrum.plot_topomap()
, by Thomas Binns. (#12853)Fix bug where invalid data types (e.g.,
np.ndarray``s) could be used in some :class:`mne.io.Info` fields like ``info["subject_info"]["weight"]
, by Eric Larson. (#12875)When creating a
SpectrumArray
, the array shape check now compares against the total of both ‘good’ and ‘bad’ channels in the providedInfo
(previously only good channels were checked), by Mathieu Scheltienne. (#12877)
API changes by deprecation#
Deprecate
average
parameter inplot_filters
andplot_patterns
methods of themne.decoding.CSP
andmne.decoding.SPoC
classes, by Thomas Binns. (#12829)
New features#
Add support for
dict
type argumentref_channels
tomne.set_eeg_reference()
, to allow flexible re-referencing (e.g.raw.set_eeg_reference(ref_channels={'A1': ['A2', 'A3']})
will set the new A1 data to beA1 - mean(A2, A3)
), by Alex Lepauvre and Qian Chu and Daniel McCloy. (#12366)Add reader for ANT Neuro files in the
*.cnt
format withread_raw_ant()
, by Mathieu Scheltienne, Eric Larson and Proloy Das. (#12792)Add support for a
mne.transforms.Transform
in the argumenttrans
of the coregistration GUI called withmne.gui.coregistration()
, by Mathieu Scheltienne. (#12801)
Added support for
sensor_scales
tomne.viz.Brain.add_sensors()
andmne.viz.plot_alignment()
, by new contributor Alex Lepauvre. (#12805)Raw()
andsave()
now return the path to the saved file(s), by Victor Ferat. (#12811)mne.channels.read_custom_montage()
may now read a newer version of the.elc
ASA Electrode file format, by Stefan Appelhoff. (#12830)Added the
title
argument tomne.viz.create_3d_figure()
, andcolor
andposition
arguments tomne.viz.set_3d_title()
, by Eric Larson. (#12871)
Other changes#
Use custom code in
mne.sys_info()
to get the amount of physical memory and a more informative CPU name instead of using thepsutil
package, by Clemens Brunner. (#12787)Improve documentation clarity of
fit_transform
methods formne.decoding.SSD
,mne.decoding.CSP
, andmne.decoding.SPoC
classes, by Thomas Binns. (#12827)Improve handling of filenames in
raw.filenames
by usingPath
instead ofstr
, by Mathieu Scheltienne. (#12843)Improve automatic figure scaling of
mne.viz.plot_events()
, and event_id and count overview legend when a high amount of unique events is supplied, by Stefan Appelhoff. (#12844)mne.preprocessing.ICA.find_bads_muscle()
can now be run when passing aninst
without sensor positions. However, it will just use the first of three criteria (slope) to find muscle-related ICA components, by Stefan Appelhoff. (#12862)