- make type aliases compatible with python 3.10
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user