Skip to content

Commit f821d63

Browse files
Merge 3a5ceb6 into 19ea209
2 parents 19ea209 + 3a5ceb6 commit f821d63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/nanopyx/core/io/zip_image_loader.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def __init__(self, zip_file_path: str):
2525
if name.endswith(".tif") and not name.startswith("_")
2626
]
2727
self.tiff_file_names = sorted(self.tiff_file_names)
28-
# print(self.tiff_file_names)
2928

3029
def __getitem__(self, index: int) -> np.ndarray:
3130
if index >= len(self.tiff_file_names):
@@ -53,11 +52,11 @@ def _get_im0(self):
5352
self._dtype = self._im0.dtype
5453
return self._im0
5554

56-
def get_shape(self) -> list:
55+
def get_shape(self) -> List[int]:
5756
"""
5857
Returns the shape of the image stack
5958
:return: shape of the image stack
60-
:rtype: list
59+
:rtype: list[int]
6160
"""
6261
self._get_im0()
6362
return self._shape
@@ -81,7 +80,7 @@ def get_thumb(self, save_path=None):
8180
_max = thumb.max()
8281
_min = thumb.min()
8382
thumb = (thumb.astype("float32") - _min / (_max - _min)) * 255
84-
if save_path != None:
83+
if save_path is not None:
8584
# Save the thumbnail as a JPEG file
8685
skimage.io.imsave(os.path.join(save_path, "thumbnail.jpg"), thumb)
8786

0 commit comments

Comments
 (0)