File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ def __init__(self, zip_file_path: str):
25
25
if name .endswith (".tif" ) and not name .startswith ("_" )
26
26
]
27
27
self .tiff_file_names = sorted (self .tiff_file_names )
28
- # print(self.tiff_file_names)
29
28
30
29
def __getitem__ (self , index : int ) -> np .ndarray :
31
30
if index >= len (self .tiff_file_names ):
@@ -53,11 +52,11 @@ def _get_im0(self):
53
52
self ._dtype = self ._im0 .dtype
54
53
return self ._im0
55
54
56
- def get_shape (self ) -> list :
55
+ def get_shape (self ) -> List [ int ] :
57
56
"""
58
57
Returns the shape of the image stack
59
58
:return: shape of the image stack
60
- :rtype: list
59
+ :rtype: list[int]
61
60
"""
62
61
self ._get_im0 ()
63
62
return self ._shape
@@ -81,7 +80,7 @@ def get_thumb(self, save_path=None):
81
80
_max = thumb .max ()
82
81
_min = thumb .min ()
83
82
thumb = (thumb .astype ("float32" ) - _min / (_max - _min )) * 255
84
- if save_path != None :
83
+ if save_path is not None :
85
84
# Save the thumbnail as a JPEG file
86
85
skimage .io .imsave (os .path .join (save_path , "thumbnail.jpg" ), thumb )
87
86
You can’t perform that action at this time.
0 commit comments