Skip to content

Commit d7dec3b

Browse files
committed
Update
1 parent 7a7360f commit d7dec3b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/vitessce/data_utils/spatialdata_points_zorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def sdata_morton_sort_points(sdata, element):
159159
sorted_ddf = ddf.sort_values(by="morton_code_2d", ascending=True)
160160
sdata.points[element] = sorted_ddf
161161

162-
annotating_tables = get_element_annotators(sdata, element)
162+
# annotating_tables = get_element_annotators(sdata, element)
163163

164164
# TODO: Sort any annotating table(s) as well.
165165

tests/test_sdata_points_zorder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import pytest
2-
from os.path import join
3-
from pathlib import Path, PurePosixPath, PureWindowsPath
2+
from pathlib import Path
43
import numpy as np
5-
64
from spatialdata import read_zarr
75

86
from vitessce.data_utils.spatialdata_points_zorder import (
@@ -16,8 +14,8 @@
1614
)
1715

1816

19-
def is_sorted(l):
20-
return all(l[i] <= l[i + 1] for i in range(len(l) - 1))
17+
def is_sorted(arr):
18+
return all(arr[i] <= arr[i + 1] for i in range(len(arr) - 1))
2119

2220

2321
data_path = Path('tests/data')

0 commit comments

Comments
 (0)