Skip to content

Commit 794feaa

Browse files
Fix pad width types
1 parent 8bbf7ea commit 794feaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

isyntax2raw/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ def write_image_type(self, image_type, series, img_x, img_y):
613613

614614
# if the image is smaller than metadata dimensions,
615615
# pad to the correct size
616-
height_diff = img_y - img.height
617-
width_diff = img_x - img.width
616+
height_diff = int(img_y - img.height)
617+
width_diff = int(img_x - img.width)
618618
band = np.pad(band, [(0, height_diff), (0, width_diff)])
619619

620620
tile[0, channel, 0] = band

0 commit comments

Comments
 (0)