File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ def __call__(self, slide):
589
589
if 0 <= self .randomly_select < len (slide ["tiles" ]):
590
590
# Choose a subset of the tiles randomly
591
591
slide ["tiles" ] = dict (
592
- random .sample (slide ["tiles" ].items (), self .randomly_select )
592
+ random .sample (sorted ( slide ["tiles" ].items () ), self .randomly_select )
593
593
)
594
594
595
595
def check_mask_filename (self , mask_filename ):
@@ -806,7 +806,7 @@ def __call__(self, slide):
806
806
if 0 <= self .randomly_select < len (slide ["tiles" ]):
807
807
# Choose a subset of the tiles randomly
808
808
slide ["tiles" ] = dict (
809
- random .sample (slide ["tiles" ].items (), self .randomly_select )
809
+ random .sample (sorted ( slide ["tiles" ].items () ), self .randomly_select )
810
810
)
811
811
812
812
You can’t perform that action at this time.
0 commit comments