Skip to content

Commit

Permalink
- flatten method for Imread.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Pomp committed Mar 12, 2024
1 parent 06906b1 commit 5dafc31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ndbioimage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ def cfun(s, s2, n):
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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 5dafc31

Please sign in to comment.