- make type aliases compatible with python 3.10
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "tiffwrite"
|
name = "tiffwrite"
|
||||||
version = "2024.10.0"
|
version = "2024.10.1"
|
||||||
description = "Parallel tiff writer compatible with ImageJ."
|
description = "Parallel tiff writer compatible with ImageJ."
|
||||||
authors = ["Wim Pomp, Lenstra lab NKI <w.pomp@nki.nl>"]
|
authors = ["Wim Pomp, Lenstra lab NKI <w.pomp@nki.nl>"]
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
|||||||
@@ -31,9 +31,8 @@ except Exception: # noqa
|
|||||||
__version__ = "unknown"
|
__version__ = "unknown"
|
||||||
|
|
||||||
|
|
||||||
type Strip = tuple[list[int], list[int]]
|
Strip = tuple[list[int], list[int]]
|
||||||
type CZT = tuple[int, int, int]
|
CZT = tuple[int, int, int]
|
||||||
type FrameInfo = tuple[IFD, Strip, CZT]
|
|
||||||
|
|
||||||
|
|
||||||
def tiffwrite(file: str | Path, data: np.ndarray, axes: str = 'TZCXY', dtype: DTypeLike = None, bar: bool = False,
|
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
|
return new
|
||||||
|
|
||||||
|
|
||||||
|
FrameInfo = tuple[IFD, Strip, CZT]
|
||||||
|
|
||||||
|
|
||||||
class IJTiffFile:
|
class IJTiffFile:
|
||||||
""" Writes a tiff file in a format that the BioFormats reader in Fiji understands.
|
""" Writes a tiff file in a format that the BioFormats reader in Fiji understands.
|
||||||
file: filename of the new tiff file
|
file: filename of the new tiff file
|
||||||
|
|||||||
Reference in New Issue
Block a user