FXIhub / owl

CXI viewer written in python
3 stars 3 forks source link

empty Cache when loading another dataset #7

Open daurer opened 9 years ago

daurer commented 9 years ago

Traceback (most recent call last): File "/Users/benedikt/phd-project/software/owl/dataloader.py", line 400, in loadImage shape = (min(self.imageData[img].shape[0], 8192), min(self.imageData[img].shape[1], 8192)) File "/Users/benedikt/phd-project/software/owl/cache.py", line 24, in getitem retval = self.dict.pop(key) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/collections.py", line 143, in pop raise KeyError(key) KeyError: 3 Traceback (most recent call last): File "/Users/benedikt/phd-project/software/owl/view2d.py", line 774, in generateTexture maskData = self.loaderThread.maskData[img] File "/Users/benedikt/phd-project/software/owl/cache.py", line 24, in getitem retval = self.dict.pop(key) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/collections.py", line 143, in pop raise KeyError(key) KeyError: 2

daurer commented 9 years ago

It seems that when reloading the dataset or loading another one, for a short time, the ImgData and/or MaskData chache is empty.