Skip to content

Commit 77cf8ca

Browse files
iverksIver Smage
andauthored
remove uint16 conversion (#127)
Co-authored-by: Iver Smage <iversmage@gmail.com>
1 parent 307e2de commit 77cf8ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/instamatic/processing/ImgConversion.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,6 @@ def write_tiff(self, path: str, i: int) -> str:
449449
img = self.data[i]
450450
h = self.headers[i]
451451

452-
# PETS reads only 16bit unsignt integer TIFF
453-
img = np.round(img, 0).astype(np.uint16)
454-
455452
fn = path / f'{i:05d}.tiff'
456453
write_tiff(fn, img, header=h)
457454
return fn

0 commit comments

Comments
 (0)