Skip to content

Commit 3f50dd9

Browse files
committed
🐛 Fix ruff RUF046
1 parent cb26c1f commit 3f50dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tiatoolbox/wsicore/wsireader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,8 @@ def save_tiles(
16271627
output_dir.mkdir(parents=True)
16281628
data = []
16291629

1630-
vertical_tiles = int(math.ceil((slide_h - tile_h) / tile_h + 1)) # noqa: RUF046
1631-
horizontal_tiles = int(math.ceil((slide_w - tile_w) / tile_w + 1)) # noqa: RUF046
1630+
vertical_tiles = math.ceil((slide_h - tile_h) / tile_h + 1)
1631+
horizontal_tiles = math.ceil((slide_w - tile_w) / tile_w + 1)
16321632
for iter_tot, (h, w) in enumerate(np.ndindex(vertical_tiles, horizontal_tiles)):
16331633
start_h = h * tile_h
16341634
end_h = (h * tile_h) + tile_h

0 commit comments

Comments
 (0)