From 5e068e7374e7da5317de462fb967be8b6dfdc156 Mon Sep 17 00:00:00 2001 From: Wim Pomp Date: Thu, 1 Dec 2022 14:41:58 +0100 Subject: [PATCH] Bugfix --- issfile/__init__.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/issfile/__init__.py b/issfile/__init__.py index 07f6571..4aea606 100644 --- a/issfile/__init__.py +++ b/issfile/__init__.py @@ -152,7 +152,7 @@ class IssFile: with TiffFile(file, (self.shape[2], 1, self.shape[3]), iss=self, bar=bar, pxsize=self.pxsize, comment=ET.tostring(self.metadata)) as tif: for c, t in product(range(self.shape[2]), range(self.shape[3])): - tif.save((0, c, t), c, 0, t) + tif.save(np.array((0, c, t)), c, 0, t) def save_carpets_as_tiff(self, file): if self.shape[4]: @@ -160,7 +160,7 @@ class IssFile: with TiffFile(file, (self.shape[2], 1, self.shape[4]), iss=self, bar=bar, pxsize=self.orbit_pxsize, comment=ET.tostring(self.metadata)) as tif: for c, t in product(range(self.shape[2]), range(self.shape[4])): - tif.save((1, c, t), c, 0, t) + tif.save(np.array((1, c, t)), c, 0, t) @staticmethod def parse_line(line): diff --git a/setup.py b/setup.py index 1df16d0..d141868 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import os import setuptools -version = '2022.11.0' +version = '2022.12.0' with open('README.md', 'r') as fh: long_description = fh.read()