From c46e08973042350e23ff58fb48ae29b8d734b9a5 Mon Sep 17 00:00:00 2001 From: Xichen Wu <102925032+wxicu@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:48:31 +0200 Subject: [PATCH] fix test warning (#404) --- tests/tools/_metadata/test_cell_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/_metadata/test_cell_line.py b/tests/tools/_metadata/test_cell_line.py index 3b2d49ef..8e1e5336 100644 --- a/tests/tools/_metadata/test_cell_line.py +++ b/tests/tools/_metadata/test_cell_line.py @@ -29,7 +29,7 @@ def adata(self) -> AnnData: } cell_line = pd.DataFrame(cell_line) obs = pd.concat([cell_line], axis=1) - obs = obs.set_index(np.arange(NUM_GENES)) + obs = obs.set_index(pd.Index([str(i) for i in range(NUM_GENES)])) obs.index.rename("index", inplace=True) obs["perturbation"] = "Midostaurin"