- make type aliases compatible with python 3.10

This commit is contained in:
Wim Pomp
2024-10-02 14:03:36 +02:00
parent a733d8a820
commit 93d62c5345
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "tiffwrite"
version = "2024.10.0"
version = "2024.10.1"
description = "Parallel tiff writer compatible with ImageJ."
authors = ["Wim Pomp, Lenstra lab NKI <w.pomp@nki.nl>"]
license = "GPL-3.0-or-later"

View File

@@ -31,9 +31,8 @@ except Exception: # noqa
__version__ = "unknown"
type Strip = tuple[list[int], list[int]]
type CZT = tuple[int, int, int]
type FrameInfo = tuple[IFD, Strip, CZT]
Strip = tuple[list[int], list[int]]
CZT = tuple[int, int, int]
def tiffwrite(file: str | Path, data: np.ndarray, axes: str = 'TZCXY', dtype: DTypeLike = None, bar: bool = False,
@@ -350,6 +349,9 @@ class IFD(dict):
return new
FrameInfo = tuple[IFD, Strip, CZT]
class IJTiffFile:
""" Writes a tiff file in a format that the BioFormats reader in Fiji understands.
file: filename of the new tiff file