@@ -434,16 +434,14 @@ def test_cov_estimation_with_triggers(rank, tmp_path):
434434 preload = True ,
435435 )
436436
437- cov = compute_covariance (epochs , keep_sample_mean = True , on_few_samples = "ignore" )
437+ cov = compute_covariance (epochs , keep_sample_mean = True )
438438 cov_km = read_cov (cov_km_fname )
439439 # adjust for nfree bug
440440 cov_km ["nfree" ] -= 1
441441 _assert_cov (cov , cov_km )
442442
443443 # Test with tmin and tmax (different but not too much)
444- cov_tmin_tmax = compute_covariance (
445- epochs , tmin = - 0.19 , tmax = - 0.01 , on_few_samples = "ignore"
446- )
444+ cov_tmin_tmax = compute_covariance (epochs , tmin = - 0.19 , tmax = - 0.01 )
447445 assert np .all (cov .data != cov_tmin_tmax .data )
448446 err = np .linalg .norm (cov .data - cov_tmin_tmax .data ) / np .linalg .norm (
449447 cov_tmin_tmax .data
@@ -464,12 +462,12 @@ def test_cov_estimation_with_triggers(rank, tmp_path):
464462 )
465463 for ev_id in event_ids
466464 ]
467- cov2 = compute_covariance (epochs , keep_sample_mean = True , on_few_samples = "ignore" )
465+ cov2 = compute_covariance (epochs , keep_sample_mean = True )
468466 assert_array_almost_equal (cov .data , cov2 .data )
469467 assert cov .ch_names == cov2 .ch_names
470468
471469 # cov with keep_sample_mean=False using a list of epochs
472- cov = compute_covariance (epochs , keep_sample_mean = False , on_few_samples = "ignore" )
470+ cov = compute_covariance (epochs , keep_sample_mean = False )
473471 assert cov_km .nfree == cov .nfree
474472 _assert_cov (cov , read_cov (cov_fname ), nfree = False )
475473
0 commit comments