Skip to content

Commit

Permalink
fixed missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesch committed Mar 8, 2024
1 parent 759a8e5 commit 8dd45a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flipnslide/tests/test_tiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_crop():

#Test that the crop function works
tiling_init = Tiling(image=sample_image)
cropped_image = tiling_init.crop(image, tile_size=tile_size)
cropped_image = tiling_init.crop(sample_image, tile_size=tile_size)

# Test that the image is cropped
assert cropped_image.shape[-1] < sample_image.shape[-1]
Expand All @@ -88,7 +88,7 @@ def test_crop():
assert cropped_image.shape[-1] == sample_image.shape[-2]

# Test that the image is cropped to a size that fits the tile_size
assert shape[-1] % tile_size == 0
assert cropped_image.shape[-1] % tile_size == 0


def test_torch():
Expand Down

0 comments on commit 8dd45a5

Please sign in to comment.