Skip to content

Commit

Permalink
Simplify multiple comps check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Jul 15, 2024
1 parent 0f5ad95 commit 69a8abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne_connectivity/spectral/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ def spectral_connectivity_epochs(
rank=rank,
n_lags=gc_n_lags if _method in _gc_methods else None,
)
if n_components != 0 and _method in _multicomp_methods:
if n_components and _method in _multicomp_methods:
kwargs.update(components=np.arange(n_components) + 1)
# create the connectivity container
if mode in ["multitaper", "fourier"]:
Expand Down

0 comments on commit 69a8abd

Please sign in to comment.