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

Commit 55d845b

Browse files
committed
h5py 3.0 read str as bytes, force to downgrade;
1 parent 182d1b9 commit 55d845b

6 files changed

Lines changed: 1 addition & 15 deletions

File tree

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
alphashape
2+
h5py<=2.10.0
23
anndata
34
bokeh
45
colour

tests/test_config_utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ def test_data2adata(shared_datadir):
112112
})
113113

114114
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]
118115
pytest.data = data
119116
col = [0 for _ in range(len(data.obs))]
120117
CONFIG.VERBOSE = True

tests/test_plotting.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ 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]
3330
pytest.data = data
3431

3532

tests/test_spatial_noNeigh.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
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]
1916
pytest.data = data
2017

2118

tests/test_spatial_useNeigh.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
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]
1916
pytest.data = data
2017

2118

tests/test_sta.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
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]
2017
pytest.data = data
2118

2219

0 commit comments

Comments
 (0)