Version 0.10.0.dev75+g51bdcd29b (development) (2026-11-28)#
Dependencies#
Update minimum MNE version to 1.8, by Thomas Binns. (#475)
Update minimum Python version to 3.11, by Thomas Binns. (#475)
Updated minimum for:
Core dependency
numpy >= 2.1Core dependency
pandas >= 2.2Core dependency
scikit-learn >= 1.5Core dependency
scipy >= 1.14Optional dependency
nibabel >= 5.2Optional dependency
nilearn >= 0.10Optional dependency
matplotlib >= 3.9Optional dependency
mne-qt-browser >= 0.6Optional dependency
pyvista >= 0.44Optional dependency
pyvistaqt >= 0.11
Changes made automatically by mne[bot]. (#482)
Move matplotlib from an optional to a core dependency, by Thomas Binns. (#500)
Move developer dependencies from end-user extras groups to developer-facing groups, by Thomas Binns. (#500)
Remove
guiextras group and consolidate optional dependencies into a newfullextras group (uses PySide6; the equivalentfull-pyqt6group using PyQt6 is also available), by Thomas Binns. (#500)Updated minimum for:
Optional dependency
nibabel >= 5.3
Changes made automatically by mne[bot]. (#502)
Updated minimum for:
Core dependency
netCDF4 >= 1.7.2Core dependency
tqdm >= 4.66Core dependency
xarray >= 2024.10Optional dependency
h5netcdf >= 1.4Optional dependency
joblib >= 0.8
By Thomas Binns. (#516)
Added optional dependency
h5py >= 3.12, by Thomas Binns. (#516)Remove
netCDF4as a core dependency, by Thomas Binns. (#559)
Bugfixes#
Fix channel selection to respect
selectionparameter as"seeds"or"targets"whenpicksis notNoneinplot_connectivity(),plot_spectral_connectivity(),plot_temporal_connectivity(), andplot_spectrotemporal_connectivity(), by Thomas Binns. (#467)Fix bug in
spectral_connectivity_time()wherefaverage=Truewith frequency bands included frequencies beyond the requestedfmax, by Marieke De Vylder. (#479)Ensure output of CaCoh, MIC, and Granger causality methods in
spectral_connectivity_epochs()andspectral_connectivity_time(), output of CaCoh and MIC methods inCoherencyDecomposition, and output ofsymmetric_orth(), is deterministic, by Thomas Binns. (#498)Fix metadata being discarded when appending connectivity objects, by Don Yin. (#521)
Fix erroneous Nyquist checks when passing decimated TFR data to
spectral_connectivity_time(), by Don Yin. (#529)Fix bug where
degree()retained all connections when the threshold should have zero retained connections, by Eva B. (#546)Fix bug where
plot_sensors_connectivity()counted self-connections and both directions of the same pair among then_constrongest connections, and ranked connections by signed rather than absolute value, by Payam S. Shabestari. (#551)
API changes by deprecation#
Return lower-triangular connectivity data by default from
spectral_connectivity_epochs(),spectral_connectivity_time(),envelope_correlation(),phase_slope_index(),phase_slope_index_time(), andwsmi(), by Thomas Binns. (#461)Replace
indices=Nonewithindices='all'as an alias for all-to-all connectivity in connectivity containers and all connectivity-computing functions with anindicesparameter, by Thomas Binns. (#461)Remove
'symmetric'as an option forindicesin connectivity containers, by Thomas Binns. (#461)Require
indicesto be specified as tuples of array-likes for all multivariate methods inspectral_connectivity_epochs()andspectral_connectivity_time(), by Thomas Binns. (#461)Require
indicesto be specified as tuples of array-likes in connectivity container whenn_componentsis provided, by Thomas Binns. (#461)Remove deprecated
n_timesparameter frommake_signals_in_freq_bands(), by Thomas Binns. (#469)Remove deprecated
make_surrogate_datafunction, by Thomas Binns. (#470)Make
check_indicesvalidation helper function private, by Thomas Binns. (#491)Make
envelope_correlation()return anEpochConnectivityobject instead of aEpochTemporalConnectivityobject, by Thomas Binns. (#497)Remove VAR model-specific methods and properties (
predict,simulate,companion,eigvals,is_stable) fromConnectivity,EpochConnectivity,TemporalConnectivity, andEpochTemporalConnectivityclasses, by Thomas Binns. (#501)Return
VARConnectivityandEpochVARConnectivityobjects fromvector_auto_regression(), by Thomas Binns. (#501)Rename
combinemethod of connectivity containers tocombine_epochs(), by Thomas Binns. (#505)Remove
appendandcombinemethods,n_epochsproperty, andeventsandevent_idattributes from non-epoched connectivity containers, by Thomas Binns. (#506)Isolate
n_epochs_usedproperty to non-epoched connectivity containers, by Thomas Binns. (#506)Rename the
node_in -> node_outcoordinate inConnectivitycontainers toconnections, and replace then_estimated_nodesattribute withn_connections, by Thomas Binns. (#509)No longer allow
times=Nonewhen creatingConnectivityobjects with a time dimension, by Thomas Binns. (#512)Pass the
random_stateparameter of thesimulate()method of connectivity containers tonumpy.random.default_rng()instead ofnumpy.random.RandomState, by Thomas Binns. (#530)Require Welch coefficients passed to
spectral_connectivity_epochs()to contain the individual segments, and support computing connectivity from coefficients with multiple segments, by Thomas Binns. (#540)Stop storing
n_tapersin connectivity containers returned fromspectral_connectivity_epochs(), by Thomas Binns. (#542)Change
plot_connectivity_circle()to use a diverging colormap symmetric around zero by default when the plotted data has both positive and negative values, by Payam S. Shabestari. (#543)plot_sensors_connectivity()now only acceptsConnectivityobjects as data, by Payam S. Shabestari. (#551)Switch to saving connectivity containers as HDF5 files, and deprecate the saving and loading of netCDF files, by hrishihrishihrishi and Thomas Binns. (#557)
Rename the
rng_seedparameter inmake_signals_in_freq_bands(),make_surrogate_resting_data(), andmake_surrogate_evoked_data(), and therandom_stateparameter of thesimulate()method of VAR containers, torng, by Muhtasim Munif Fahim and Thomas Binns. (#558)
New features#
Add
learn_graph()for estimating sparse functional connectivity graphs directly from signal smoothness, by Payam S. Shabestari. (#439)Add
plot_connectivity(),plot_spectral_connectivity(),plot_temporal_connectivity(), andplot_spectrotemporal_connectivity()for visualising connectivity results, by Thomas Binns. (#460)Add
missingparameter to control the filling of missing values in dense connectivity matrices in theget_data()method of connectivity containers, for connectivity methods where these values cannot be determined from the lower-/upper-triangular elements, by Thomas Binns. (#461)Add
'lower','upper', and'all'as options forindicesin connectivity containers and all connectivity-computing functions with anindicesparameter, by Thomas Binns. (#461)Add automatic filling of missing values in dense connectivity matrices from existing lower-/upper-triangular elements in the
get_data()method of connectivity containers, for eligible connectivity methods, by Thomas Binns. (#461)Plot multivariate components as separate figures in
plot_connectivity(), by Thomas Binns. (#467)Speed up
spectral_connectivity_epochs()for Morlet wavelet (cwt_morlet) spectra by conjugating each signal once rather than for every connection, by Eric Larson. (#487)Add new
VARConnectivityandEpochVARConnectivityclasses for working with VAR models, by Thomas Binns. (#501)Add
combine_freqs()andcombine_times()methods to connectivity containers for combining over frequencies and times, by Thomas Binns. (#505)Add
avg_degreeparameter tolearn_graph()to automatically selectalphaandbetafor a desired average number of edges per node, by Payam S. Shabestari. (#539)Add directed phase lag index (dPLI) method to
spectral_connectivity_time(), by Thomas Binns. (#544)Add
overwriteandverboseparameters to thesave()method of connectivity containers, by Qiaobo Chi and Thomas Binns. (#560)
Other changes#
Deprecate method names in favour of the following:
phase-slope-index→psienvelope correlation→env_corrandenv_corr_orth(depending on orthogonalization)SMI→smiwSMI→wsmi
by Thomas Binns. (#494)
Deprecate method names in favour of the following:
VAR(1)andVAR(p)→varTime-varying VAR(1)andTime-varying VAR(p)→var
by Thomas Binns. (#494) and (#501)
Clarify supported random number generator seeds in dataset helpers and connectivity simulation by Okan Tiktas. (#520)
Add a check for
h5netcdfavailability in thesave()method of connectivity containers and in theread_connectivity()function, by Thomas Binns. (#559)