Skip to content

Commit 415d5a0

Browse files
committed
FX: More
1 parent 4c8eaa1 commit 415d5a0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

mne/viz/tests/test_ica.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,14 @@ def test_plot_ica_properties_reject(kind):
298298
raw.set_montage("standard_1020")
299299
ica = ICA(
300300
n_components=2,
301-
method="picard",
302301
random_state=0,
303-
fit_params=dict(ortho=False, extended=True),
302+
max_iter=1,
304303
)
305-
with pytest.warns(RuntimeWarning, match="filtered"), catch_logging(True) as log:
304+
with (
305+
pytest.warns(RuntimeWarning, match="filtered"),
306+
pytest.warns(Warning, match="converge"),
307+
catch_logging(True) as log,
308+
):
306309
ica.fit(raw, reject=dict(eeg=500e-6))
307310
log = log.getvalue()
308311
assert log.count("Artifact detected") == 1 # dropped one epoch

0 commit comments

Comments
 (0)