BICCN / cell-locator

manually align specimens to annotated 3D spaces
https://cell-locator.readthedocs.io
Other
19 stars 7 forks source link

Contrast "reset" button does nothing. (Slicer 2020) #136

Closed allemangD closed 4 years ago

allemangD commented 4 years ago

Environment

Description

The contrast reset button has no effect. An error message appears in the log:

Traceback (most recent call last):
  File "./Slicer-build/lib/CellLocator-4.11/qt-scripted-modules/Home.py", line 788, in onResetContrastButtonClicked
    self.get('ContrastSlider').setValues(self.DefaultWindowLevelMin, self.DefaultWindowLevelMax)
AttributeError: 'HomeWidget' object has no attribute 'DefaultWindowLevelMin'

This is likely because default values have been moved to the Annotation and AnnotationManager classes, and the contrast defaults were overlooked.

How to Reproduce

  1. Start the application
  2. Modify the contrast slider
  3. Click the contrast reset button (to the right of the slider)