Skip to content

Commit

Permalink
avoid FutureWarning from zero_mean default change (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock authored Mar 26, 2024
1 parent 2af1398 commit e00ea3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mne_connectivity/spectral/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ def _spectral_connectivity(
"""
n_cons = len(source_idx)
data = np.expand_dims(data, axis=0)
kw_cwt.setdefault("zero_mean", False) # avoid FutureWarning
if mode == "cwt_morlet":
out = tfr_array_morlet(
data,
Expand Down

0 comments on commit e00ea3f

Please sign in to comment.