mwcraig / reducer

Friendly professional-level data reduction...documentation here:
https://reducer.readthedocs.org
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

My images can't get displayed #115

Closed JuanCab closed 8 years ago

JuanCab commented 8 years ago

Yo... I have like these 16 bit unsigned integer images and the reducer script be all cough cough choke with this error message:

/Users/juan/anaconda/lib/python2.7/site-packages/reducer/image_browser.pyc in ndarray_to_png(x) 214 width = 600 # pixels 215 new_shape = np.asarray(width/shape[0]_aspect_shape, dtype='int') --> 216 x = np.asarray(Image.fromarray(x).resize(new_shape)) 217 x = (x - x.mean()) / x.std() 218 x[x >= 3] = 2.99

/Users/juan/anaconda/lib/python2.7/site-packages/PIL/Image.pyc in fromarray(obj, mode) 2165 except KeyError: 2166 # print typekey -> 2167 raise TypeError("Cannot handle this data type") 2168 else: 2169 rawmode = mode

TypeError: Cannot handle this data type

mwcraig commented 8 years ago

Closed by #116