2
2
from labelbox .data .annotation_types .data import tiled_image
3
3
from labelbox .data .annotation_types .geometry .point import Point
4
4
from labelbox .data .annotation_types .data .tiled_image import (EPSG , TiledBounds ,
5
- TileLayer )
5
+ TileLayer ,
6
+ TiledImageData )
6
7
from pydantic import ValidationError
8
+ from retry import retry
7
9
8
10
9
11
@pytest .mark .parametrize ("epsg" , list (EPSG ))
@@ -27,3 +29,20 @@ def test_tiled_bounds_same(epsg):
27
29
with pytest .raises (ValidationError ):
28
30
tiled_bounds = TiledBounds (epsg = epsg ,
29
31
bounds = [single_bound , single_bound ])
32
+
33
+
34
+ # def test_create_tiled_image_data():
35
+ # bounds_points = [Point(x=0, y=0), Point(x=5, y=5)]
36
+ # url = "https://labelbox.s3-us-west-2.amazonaws.com/pathology/{z}/{x}/{y}.png"
37
+ # zoom_levels = [1, 10]
38
+
39
+ # tile_layer = TileLayer(url=url, name="slippy map tile")
40
+ # tile_bounds = TiledBounds(epsg=EPSG.EPSG4326, bounds=bounds_points)
41
+ # tiled_image_data = TiledImageData(tile_layer=tile_layer,
42
+ # tile_bounds=tile_bounds,
43
+ # zoom_levels=zoom_levels,
44
+ # version=2)
45
+ # assert isinstance(tiled_image_data, TiledImageData)
46
+ # assert tiled_image_data.tile_bounds == bounds_points
47
+ # assert tiled_image_data.tile_layer.url == url
48
+ # assert tiled_image_data.zoom_levels == zoom_levels
0 commit comments