Skip to content

Commit

Permalink
Fix edge case for SlidesDataset
Browse files Browse the repository at this point in the history
Mr-Milk committed Dec 5, 2023

Unverified

The email in this signature doesn’t match the committer email.
1 parent 0a67eb2 commit eb54029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazyslide/loader/slides_balaned_loader.py
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ def __len__(self):

def __getitem__(self, ix):
ix = int(ix)
_, _, slide_ix = next(self.ncls.find_overlap(ix, ix))
_, _, slide_ix = next(self.ncls.find_overlap(ix, ix+1))
tile_ix = ix - self.starts[slide_ix]
wsi = self.wsi_list[slide_ix]

0 comments on commit eb54029

Please sign in to comment.