diff --git a/lazyslide/readers/openslide.py b/lazyslide/readers/openslide.py index 30115c4..f197216 100644 --- a/lazyslide/readers/openslide.py +++ b/lazyslide/readers/openslide.py @@ -26,7 +26,7 @@ def __init__( self, file: Union[Path, str], ): - self.slide = OpenSlide(self.file) + self.slide = OpenSlide(file) super().__init__(file, dict(self.slide.properties)) self._levels = np.arange(self.metadata.n_level)