- flatten method for Imread.

This commit is contained in:
Wim Pomp
2024-03-12 15:55:38 +01:00
parent 06906b1d2c
commit 5dafc31559
2 changed files with 4 additions and 1 deletions

View File

@@ -653,6 +653,9 @@ class Imread(np.lib.mixins.NDArrayOperatorsMixin, ABC):
return self.__array_fun__([np.nansum, np.nansum, np.sum], axis, dtype, out, keepdims, None, where,
(sfun, s2fun, nfun), cfun)
def flatten(self, *args, **kwargs):
return np.asarray(self).flatten(*args, **kwargs)
@wraps(np.reshape)
def reshape(self, *args, **kwargs):
return np.asarray(self).reshape(*args, **kwargs)

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "ndbioimage"
version = "2024.3.1"
version = "2024.3.2"
description = "Bio image reading, metadata and some affine registration."
authors = ["W. Pomp <w.pomp@nki.nl>"]
license = "GPLv3"