On Wednesday, July 11, 2012 2:50:11 PM UTC+2, Zachary Pincus wrote:
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?
two.dtype and summation.dtype return "int32" .dtype.type is returning
"<type 'numpy.int32'>" in both cases. I just tried it on a diffrent PC. Same problem on a Win32 XP 32bit system with EPD 7.2-2 Python 2.7.2 In summary. It is working on : Python 2.7.1 |EPD 7.0-2 (32-bit)| Win 7 32 Python 2.7.2 |EPD 7.2-2 (64-bit)| Mac OSX And not working on: Python 2.7.3 |EPD 7.3-1 (64-bit)| Win 7 64 Python 2.7.2 IEPD 7.2-2 (32-bit)| Win XP
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