Skip to content

Commit 7730074

Browse files
committed
fix test import and README
1 parent 7ca70c8 commit 7730074

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/workflows/codecov.yml

-2
This file was deleted.

tests/test_krr_approx.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,20 @@
33
import scipy
44
import torch
55
from sobolev_alignment import KRRApprox
6+
from sobolev_alignment.krr_approx import FALKON_IMPORTED
67

7-
n_samples = 2000
88
n_samples_valid = 50
99
n_genes = 100
1010
n_latent = 7
11+
n_samples = 2000
1112
penalization = 0.0001
1213
pearson_threshold = 0.99
1314
M = 500
1415

1516

1617
@pytest.fixture(scope="module")
1718
def falkon_import():
18-
try:
19-
return True
20-
except ImportError:
21-
return False
19+
return FALKON_IMPORTED
2220

2321

2422
@pytest.fixture(scope="module")
@@ -160,6 +158,9 @@ def test_all_sklearn_kernels(self):
160158

161159
def test_all_falkon_kernels(self, falkon_import):
162160
if falkon_import:
161+
print(">>>>>>\n\n\n\n")
162+
print(falkon_import)
163+
print("\n\n\n<<<<<")
163164
for kernel in KRRApprox.falkon_kernel:
164165
KRRApprox(kernel=kernel, method="falkon")
165166
return True

tests/test_sobolev_alignment.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import pytest
44
from anndata import AnnData
55
from sobolev_alignment import SobolevAlignment
6+
from sobolev_alignment.krr_approx import FALKON_IMPORTED
67

78
n_samples = 500
89
n_samples_valid = 50
@@ -15,10 +16,7 @@
1516

1617
@pytest.fixture(scope="module")
1718
def falkon_import():
18-
try:
19-
return True
20-
except ImportError:
21-
return False
19+
return FALKON_IMPORTED
2220

2321

2422
@pytest.fixture(scope="module")

0 commit comments

Comments
 (0)