jzaremba / guiqwt

Automatically exported from code.google.com/p/guiqwt
Other
0 stars 1 forks source link

Problemn when changing the contrast of an image #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, I got this error when playing with a tiff image

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/guiqwt/histogram.py", line 364, in set_full_range
    imin, imax = item.get_lut_range_full()
  File "/usr/lib/python2.7/dist-packages/guiqwt/image.py", line 488, in get_lut_range_full
    return _nanmin(self.data), _nanmax(self.data)
  File "/usr/lib/python2.7/dist-packages/guiqwt/image.py", line 190, in _nanmin
    return np.nanmin(data)
  File "/usr/lib/pymodules/python2.7/numpy/lib/function_base.py", line 1507, in nanmin
    return np.fmin.reduce(a.flat)
TypeError: cannot reduce on a scalar

if you want the image just tell me

Original issue reported on code.google.com by pi...@synchrotron-soleil.fr on 18 Mar 2013 at 2:29

GoogleCodeExporter commented 9 years ago
Please send the image: that would certainly helps understand what's going 
wrong. 

Original comment by pierre.raybaut on 21 May 2013 at 1:40