July 11, 2012
12:50 p.m.
I wonder if this has to do with the type-promotion behavior changes in a recent numpy version? What is the dtype of "summation" below? On Jul 10, 2012, at 9:35 AM, Sigmund wrote:
Hey!
Whil writing the test code I found out that saving the array by itself doesn't cause the error. Only after summing two arrays it fails.
import numpy as np import skimage.io as io io.use_plugin("freeimage", "imread") one = np.ones([2048,2048],dtype=np.int32) two = np.zeros([2048,2048],dtype=np.int32) summation = one + two io.imsave("test.tif",summation, plugin="freeimage")
not using the freeimage plugin in not failing.
Siggi