[SciPy-user] scipy.io.read_array: NaN in data file

Erik Granstedt egranstedt@gmail....
Tue Mar 10 10:57:06 CDT 2009


I am using scipy.io.read_array to read in values from data files to
arrays.  The data files occasionally contain "NaN"s, and I would like
the returned array to also contain "NaN"s.  I've tried calling
read_array with:


but this still seems to convert the "NaN"s to 0.0

Is there a way to get it to return "NaN"s in the array instead of
converting them to 0.0 ?



More information about the SciPy-user mailing list