Skip to content

Commit

Permalink
Slightly simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Nov 4, 2024
1 parent 6af8673 commit 8435c10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/images/test_labeled_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,7 @@ def rands():
(x, y + 1)
)

coords = [rands() for i in range(max_objects)]

n_objects = len(coords)
features = [ImageFeature(geojson.Polygon([coords[i]]), Classification("Some classification")) for i in range(n_objects)]
features = [ImageFeature(geojson.Polygon([rands()])) for i in range(max_objects)]
labeled_server = LabeledImageServer(large_metadata, features, multichannel=False, downsample=downsample)

image = labeled_server.read_region(1, Region2D(0, 0, labeled_server.metadata.width, labeled_server.metadata.height))
Expand Down

0 comments on commit 8435c10

Please sign in to comment.