Skip to content

Commit ee48407

Browse files
committed
Fixing test failures
1 parent 1314b7a commit ee48407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tdamapper/_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def _is_sparse(self, X):
2626
return hasattr(X, 'toarray')
2727

2828
def _validate_X_y(self, X, y):
29-
X = np.asarray(X)
30-
y = np.asarray(y)
31-
3229
if self._is_sparse(X):
3330
raise ValueError('Sparse data not supported.')
3431

32+
X = np.asarray(X)
33+
y = np.asarray(y)
34+
3535
if X.size == 0:
3636
msg = f'0 feature(s) (shape={X.shape}) while a minimum of 1 is required.'
3737
raise ValueError(msg)

0 commit comments

Comments
 (0)