diff --git a/slicedimage/_tile.py b/slicedimage/_tile.py index 708438b..9c027b4 100644 --- a/slicedimage/_tile.py +++ b/slicedimage/_tile.py @@ -26,6 +26,7 @@ def _load(self): self._numpy_array = self.tile_format.reader_func(src_fh) self._source_fh_contextmanager = None self.tile_format = ImageFormat.NUMPY + self.tile_shape = self.numpy_array.shape @property def numpy_array(self): @@ -40,6 +41,7 @@ def numpy_array(self, numpy_array): self._source_fh_contextmanager = None self._numpy_array = numpy_array self.tile_format = ImageFormat.NUMPY + self.tile_shape = self._numpy_array.shape def set_source_fh_contextmanager(self, source_fh_contextmanager, tile_format): """