- bugfix in czi metadata reader

- cziread now gives empty frame if the frame wasn't saved in the file
- astype accepts extra arguments, but does not use them
- improved jvm handling
- tifread dtype fix
This commit is contained in:
Wim Pomp
2023-09-04 10:26:10 +02:00
parent ef6116c6bc
commit 96ab3174d7
5 changed files with 62 additions and 41 deletions

View File

@@ -346,7 +346,6 @@ class Shape(tuple):
class Imread(np.lib.mixins.NDArrayOperatorsMixin):
def __new__(cls, path=None, *args, **kwargs):
if cls is not Imread:
return super().__new__(cls)
@@ -955,7 +954,7 @@ class Imread(np.lib.mixins.NDArrayOperatorsMixin):
def asarray(self):
return self.__array__()
def astype(self, dtype):
def astype(self, dtype, *args, **kwargs):
new = self.copy()
new.dtype = dtype
return new