Skip to content

Commit 64e61aa

Browse files
author
Joao Felipe Rocha
committed
Removed dtype from anndata
1 parent 8403300 commit 64e61aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_anndata():
219219
except NameError:
220220
# not installed
221221
return
222-
G = build_graph(anndata.AnnData(data, dtype=data.dtype))
222+
G = build_graph(anndata.AnnData(data))
223223
assert isinstance(G, graphtools.base.BaseGraph)
224224
assert isinstance(G.data, np.ndarray)
225225

@@ -230,7 +230,7 @@ def test_anndata_sparse():
230230
except NameError:
231231
# not installed
232232
return
233-
G = build_graph(anndata.AnnData(sp.csr_matrix(data), dtype=data.dtype))
233+
G = build_graph(anndata.AnnData(sp.csr_matrix(data)))
234234
assert isinstance(G, graphtools.base.BaseGraph)
235235
assert isinstance(G.data, sp.csr_matrix)
236236

test/test_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_anndata_input():
9999
E = Estimator(verbose=0)
100100
E.fit(X.astype(np.float32))
101101
E2 = Estimator(verbose=0)
102-
E2.fit(anndata.AnnData(X, dtype=X.dtype))
102+
E2.fit(anndata.AnnData(X))
103103
np.testing.assert_allclose(
104104
E.graph.K.toarray(), E2.graph.K.toarray(), rtol=1e-6, atol=2e-7
105105
)

0 commit comments

Comments
 (0)