[SciPy-user] read_array problem
Tue Jan 8 16:11:09 CST 2008
hi, I followed the advice and looked at the docstring :
Help on function loadtxt in module numpy.core.numeric:
loadtxt(fname, dtype=<type 'float'>, comments='#', delimiter=None,
ne, skiprows=0, usecols=None, unpack=False)
Load ASCII data from fname into an array and return the array.
The data must be regular, same number of values in every row
fname can be a filename or a file handle. Support for gzipped files is
automatic, if the filename ends in .gz
See scipy.loadmat to read and write matfiles.
Beyond the fact that it comes a bit as a surprise that numpy refers to
loadmat from a distinct package (well, sometimes I wonder how distinct
scipy and numpy are meant to be.... as a matter of fact
help(scipy.loadtxt) will work as well and give you the same info), this
scipy.loadmat does not seem to exist.... Maybe scipy.load was intended?
Jarrod Millman wrote:
> On Dec 17, 2007 9:12 AM, Christoph Scheit <firstname.lastname@example.org> wrote:
>> just for curiosity I have a question regarding read_array.
>> When I use the scipy.io read_array function I observe
>> some behaviour which I don't understand...
> Hey Chris,
> scipy.io.read_array is no longer supported. In the next release of
> scipy, it will be officially deprecated.
> Please take a look at numpy.loadtxt(), which has the same
> functionality with a slightly different syntax. The loadtxt docstring
> should provide detailed instructions for how to use it. If you have
> any questions about using numpy.loadtxt(), please let us know.
More information about the SciPy-user