DeepMicroscopy / SlideRunner

SlideRunner is a tool for massive cell annotations in whole slide images
GNU General Public License v3.0
75 stars 10 forks source link

If loading database and then without loading an image, click on blank space will cause abort #8

Closed mingrui closed 6 years ago

mingrui commented 6 years ago

Bug in action: https://drive.google.com/open?id=1BTUg0L8MyhnI-w85BPVp4cf6itA34jo9

$ python main.py
List of available plugins:
 Normalize (Macenko)   Version 0.1
      OTSU threshold   Version 0.1
Positive Pixel Count (Aperio)   Version 0.1
<Linux>
Traceback (most recent call last):
  File "/mnt/960EVO/workspace/pathology/SlideRunner/SlideRunner/gui/mouseEvents.py", line 374, in pressImage
    leftClickImage(self,event)
  File "/mnt/960EVO/workspace/pathology/SlideRunner/SlideRunner/gui/mouseEvents.py", line 144, in leftClickImage
    for annotation in self.annotationsFlags:
AttributeError: 'SlideRunnerUI' object has no attribute 'annotationsFlags'
[1]    28746 abort (core dumped)  python main.py
maubreville commented 6 years ago

Thanks for pointing out!

maubreville commented 6 years ago

Fixed with 86ca932

mingrui commented 6 years ago

nice! thank you!