Skip to content

Commit 3db3403

Browse files
committed
test: add tests for inst2gdf
1 parent 2f5cbf4 commit 3db3403

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cellseg_models_pytorch/utils/tests/test_vectorize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_inst2gdf_basic():
2222
gdf = inst2gdf(inst_map, type_map, class_dict=class_dict)
2323

2424
assert isinstance(gdf, gpd.GeoDataFrame)
25-
assert 'id' in gdf.columns
25+
assert 'uid' in gdf.columns
2626
assert 'class_name' in gdf.columns
2727
assert 'geometry' in gdf.columns
2828

@@ -44,7 +44,7 @@ def test_inst2gdf_with_smoothing():
4444
gdf = inst2gdf(inst_map, type_map, class_dict=class_dict, smooth_func=gaussian_smooth)
4545

4646
assert isinstance(gdf, gpd.GeoDataFrame)
47-
assert 'id' in gdf.columns
47+
assert 'uid' in gdf.columns
4848
assert 'class_name' in gdf.columns
4949
assert 'geometry' in gdf.columns
5050

@@ -60,7 +60,7 @@ def test_sem2gdf_basic():
6060
gdf = sem2gdf(sem_map, class_dict=class_dict)
6161

6262
assert isinstance(gdf, gpd.GeoDataFrame)
63-
assert 'id' in gdf.columns
63+
assert 'uid' in gdf.columns
6464
assert 'class_name' in gdf.columns
6565
assert 'geometry' in gdf.columns
6666

@@ -76,6 +76,6 @@ def test_sem2gdf_with_smoothing():
7676
gdf = sem2gdf(sem_map, class_dict=class_dict, smooth_func=gaussian_smooth)
7777

7878
assert isinstance(gdf, gpd.GeoDataFrame)
79-
assert 'id' in gdf.columns
79+
assert 'uid' in gdf.columns
8080
assert 'class_name' in gdf.columns
8181
assert 'geometry' in gdf.columns

0 commit comments

Comments
 (0)