Skip to content

Commit

Permalink
bug fix missing refactoring for example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Oct 24, 2023
1 parent 238c0de commit 6fe682f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/handling_ragged_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import numpy as np

from mne_connectivity import spectral_connectivity_epochs
from mne_connectivity import spectral_connectivity_epochs_multivariate

###############################################################################
# Background
Expand Down Expand Up @@ -44,7 +44,7 @@
# targets = [[2, 3, 4], [4 ]]
#
# The ``indices`` parameter passed to
# :func:`~mne_connectivity.spectral_connectivity_epochs` and
# :func:`~mne_connectivity.spectral_connectivity_epochs_multivariate` and
# :func:`~mne_connectivity.spectral_connectivity_time` must be a tuple of
# array-likes, meaning
# that the indices can be passed as a tuple of: lists; tuples; or NumPy arrays.
Expand Down Expand Up @@ -108,7 +108,7 @@
[[2, 3, 4], [4]]) # targets

# compute connectivity
con = spectral_connectivity_epochs(
con = spectral_connectivity_epochs_multivariate(
data, method='mic', indices=ragged_indices, sfreq=sfreq, fmin=10, fmax=30,
verbose=False)
patterns = np.array(con.attrs['patterns'])
Expand Down

0 comments on commit 6fe682f

Please sign in to comment.