Skip to content

Commit

Permalink
Fix platform-specific test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Jun 14, 2024
1 parent 0d9f501 commit 5e38316
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mne_connectivity/decoding/tests/test_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def test_spectral_decomposition(method, mode):
epochs_transformed_2 = decomp_class_2.transform(
X=epochs[: n_epochs // 2].get_data()
)
assert_allclose(epochs_transformed, epochs_transformed_2, rtol=1e-5)
assert_allclose(decomp_class.filters_, decomp_class_2.filters_, rtol=1e-5)
assert_allclose(decomp_class.patterns_, decomp_class_2.patterns_, rtol=1e-5)
assert_allclose(epochs_transformed, epochs_transformed_2, atol=1e-9)
assert_allclose(decomp_class.filters_, decomp_class_2.filters_, atol=1e-9)
assert_allclose(decomp_class.patterns_, decomp_class_2.patterns_, atol=1e-9)

# TEST FITTING ON ONE PIECE OF DATA AND TRANSFORMING ANOTHER
con_mv_class_unseen_data = spectral_connectivity_epochs(
Expand Down Expand Up @@ -218,6 +218,9 @@ def test_spectral_decomposition(method, mode):
decomp_class.set_params(rank=None)


test_spectral_decomposition("cacoh", "cwt_morlet")


@pytest.mark.parametrize("method", ["cacoh", "mic"])
@pytest.mark.parametrize("mode", ["multitaper", "fourier", "cwt_morlet"])
def test_spectral_decomposition_parallel(method, mode):
Expand Down

0 comments on commit 5e38316

Please sign in to comment.