Skip to content

Commit 26bc7f2

Browse files
committed
Better progress during input slide examination
1 parent 468b19f commit 26bc7f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

multic/segmentationschool/Codes/wsi_loader_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ def __init__(self,args, wsi_directory=None, transform=None):
8888
print('Getting slide metadata and usable regions...')
8989

9090
usable_slides=[]
91+
iteration = 0
9192
for slide_loc in all_slides:
93+
iteration+=1
9294
slideID,slideExt=os.path.splitext(slide_loc.split(os.sep)[-1])
93-
print("working slide... "+ slideID,end='\r')
95+
print(f"slide {iteration}/{len(all_slides)}: {slideID}" ,end='\r')
9496

9597
slide=openslide.OpenSlide(slide_loc)
9698
chop_array=get_choppable_regions(slide,args,slideID,slideExt,mask_out_loc)

0 commit comments

Comments
 (0)