diff --git a/lazyslide/wsi.py b/lazyslide/wsi.py index 2e616a5..e637b20 100644 --- a/lazyslide/wsi.py +++ b/lazyslide/wsi.py @@ -674,7 +674,9 @@ def plot_mask( # return WSIDataset(self, transform=transform, run_pretrained=run_pretrained, **kwargs) def get_patch(self, left, top, width, height, level=0, **kwargs): - return self.reader.get_patch(left, top, width, height, level=level, **kwargs) + return self.reader.get_patch( + int(left), int(top), int(width), int(height), level=level, **kwargs + ) def shuffle_tiles(self, seed=0): rng = np.random.default_rng(seed)