Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit 182d1b9

Browse files
committed
RTD build issue; Github CI buid issue;
1 parent 37780f9 commit 182d1b9

6 files changed

Lines changed: 24 additions & 9 deletions

File tree

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ pytest-datadir
3131
# doc
3232
sphinx
3333
sphinx-rtd-theme
34-
35-
ujson
34+
sphinx-autodoc-typehints

tests/test_config_utils.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,19 @@ def test_data2adata(shared_datadir):
110110
'a': [1, 2, 3, 4, 5, 5, 6],
111111
'b': [4, 5, 6, 7, 8, 9, 2],
112112
})
113-
adata = read_h5ad(shared_datadir / 'small.h5ad')
114-
pytest.data = adata
115-
col = [0 for _ in range(len(adata.obs))]
113+
114+
data = read_h5ad(shared_datadir / 'small.h5ad')
115+
centroid = data.obs['centroid']
116+
if isinstance(centroid[0], bytes):
117+
data.obs['centroid'] = [i.decode('utf-8') for i in centroid]
118+
pytest.data = data
119+
col = [0 for _ in range(len(data.obs))]
116120
CONFIG.VERBOSE = True
117-
df2adata_uns(df, adata, 'test_df')
118-
col2adata_obs(col, adata, 'test_col')
121+
df2adata_uns(df, data, 'test_df')
122+
col2adata_obs(col, data, 'test_col')
119123
CONFIG.WORKING_ENV = "jupyter_notebook"
120-
df2adata_uns(df, adata, 'test_df')
121-
col2adata_obs(col, adata, 'test_col')
124+
df2adata_uns(df, data, 'test_df')
125+
col2adata_obs(col, data, 'test_col')
122126

123127

124128
def test_svca(tmpdir):

tests/test_plotting.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def test_get_linear_colors():
2727

2828
def test_read_data(shared_datadir):
2929
data = read_h5ad(shared_datadir / 'small.h5ad')
30+
centroid = data.obs['centroid']
31+
if isinstance(centroid[0], bytes):
32+
data.obs['centroid'] = [i.decode('utf-8') for i in centroid]
3033
pytest.data = data
3134

3235

tests/test_spatial_noNeigh.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
def test_read_data(shared_datadir):
1515
data = read_h5ad(shared_datadir / 'small.h5ad')
16+
centroid = data.obs['centroid']
17+
if isinstance(centroid[0], bytes):
18+
data.obs['centroid'] = [i.decode('utf-8') for i in centroid]
1619
pytest.data = data
1720

1821

tests/test_spatial_useNeigh.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
def test_read_data(shared_datadir):
1515
data = read_h5ad(shared_datadir / 'small.h5ad')
16+
centroid = data.obs['centroid']
17+
if isinstance(centroid[0], bytes):
18+
data.obs['centroid'] = [i.decode('utf-8') for i in centroid]
1619
pytest.data = data
1720

1821

tests/test_sta.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
def test_read_data(shared_datadir):
1616
data = read_h5ad(shared_datadir / 'small.h5ad')
17+
centroid = data.obs['centroid']
18+
if isinstance(centroid[0], bytes):
19+
data.obs['centroid'] = [i.decode('utf-8') for i in centroid]
1720
pytest.data = data
1821

1922

0 commit comments

Comments
 (0)