Bug #2722
Updated by Anchi Cheng over 10 years ago
Reported in Forum message#2008 message#1994 <pre> Traceback (most recent call last): File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/SelectionTool.py", "/usr/local/lib/python2.7/site-packages/leginon/gui/wx/ImagePanel.py", line 158, 777, in onDisplay self._setDisplayed(evt.name, evt.value) OnPaint self.Draw(dc) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/SelectionTool.py", "/usr/local/lib/python2.7/site-packages/leginon/gui/wx/TargetPanel.py", line 152, 266, in _setDisplayed self.parent.setImage(image) Draw self.drawTargets(dc) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanel.py", "/usr/local/lib/python2.7/site-packages/leginon/gui/wx/TargetPanel.py", line 297, 184, in setImage self.setNumericImage(imagedata) drawTargets self._drawTargets(dc, type.bitmaps['default'], targets, scale) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanel.py", "/usr/local/lib/python2.7/site-packages/leginon/gui/wx/TargetPanel.py", line 373, 156, in setNumericImage self.contrasttool.setRange((stats['min'], stats['max']), value) _drawTargets x, y = self.image2view((target.x, target.y)) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanelTools.py", "/usr/local/lib/python2.7/site-packages/leginon/gui/wx/ImagePanel.py", line 245, 510, in setRange self.setSliders(value) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanelTools.py", line 196, in setSliders self._setSliders(value) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanelTools.py", line 179, in _setSliders self.minslider.SetValue(self.getSliderValue(value0)) File "/usr/local/lib64/python2.6/site-packages/leginon/gui/wx/ImagePanelTools.py", line 223, in getSliderValue image2view return int(round((self.slidermax (int(round(((xy[0]) * scale[0]) - self.slidermin)*scale viewoffset[0] + self.slidermin)) xoffset)), ValueError: cannot convert float NaN to integer </pre>