Skip to content

Commit

Permalink
Refactor multivariate methods for connectivity classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Mar 12, 2024
1 parent 673bd3a commit f87edae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne_connectivity/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
warn,
)

from mne_connectivity.spectral.epochs_multivariate import _multivariate_methods
from mne_connectivity.utils import _prepare_xarray_mne_data_structures, fill_doc
from mne_connectivity.viz import plot_connectivity_circle

Expand Down Expand Up @@ -725,7 +726,7 @@ def get_data(self, output="compact"):
if output == "raveled":
data = self._data
else:
if self.method in ["mic", "mim", "gc", "gc_tr"]:
if self.method in _multivariate_methods:
# multivariate results cannot be returned in a dense form as a
# single set of results would correspond to multiple entries in
# the matrix, and there could also be cases where multiple
Expand Down

0 comments on commit f87edae

Please sign in to comment.