Skip to content

Commit f47da03

Browse files
committed
Trying some things for codecov
1 parent 18e4c8e commit f47da03

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/skmatter/decomposition/_pcov.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def _decompose_full(self, mat):
262262
)
263263
elif self.n_components_ >= 1:
264264
if not isinstance(self.n_components_, numbers.Integral):
265+
print("Checkpoint 265")
265266
raise ValueError(
266267
"n_components=%r must be of type int "
267268
"when greater than or equal to 1, "

tests/test_pcovc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def __init__(self, *args, **kwargs):
2828

2929
self.X, self.Y = get_dataset(return_X_y=True)
3030

31+
X_big = np.tile(self.X, (4, 1)) # shape: (600, 4)
32+
Y_big = np.tile(self.Y, 4) # shape: (600,)
33+
34+
# Assign to attributes
35+
self.X, self.Y = X_big, Y_big
3136
scaler = StandardScaler()
3237
self.X = scaler.fit_transform(self.X)
3338

@@ -175,8 +180,7 @@ def test_select_sample_space(self):
175180
Check that PCovC implements the sample space version
176181
when :math:`n_{features} > n_{samples}``.
177182
"""
178-
pcovc = self.model(n_components=2, tol=1e-12)
179-
183+
pcovc = self.model(n_components=1, tol=1e-12, svd_solver="arpack")
180184
n_samples = 2
181185

182186
# select range where there are at least 2 classes in Y

0 commit comments

Comments
 (0)