[Numpy-discussion] Question about memmap
Gökhan SEVER
gokhansever at gmail.com
Wed Jun 10 01:26:52 EDT 2009
Hello,
I am having problem while trying to memory map a simple file (attached as
test.txt)
In IPython
data = memmap('test.txt', mode='r', dtype=double, shape=(3,5))
data
memmap([[ 3.45616501e-86, 4.85780149e-33, 4.85787493e-33,
5.07185821e-86, 4.85780159e-33],
[ 4.85787493e-33, 5.07185821e-86, 1.28444278e-57,
1.39804066e-76, 4.85787506e-33],
[ 4.83906715e-33, 4.85784273e-33, 4.85787506e-33,
4.83906715e-33, 4.85784273e-33]])
which is not what is in the file. Tried different dtype float options, but
always the same result.
Could you tell me what could be wrong?
Thanks...
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090610/208f2570/attachment.html>
-------------- next part --------------
42501.0000 999999.9999 999999.9999 999999.9999 999999.9999
42502.0000 999999.9999 999999.9999 999999.9999 999999.9999
42503.0000 999999.9999 999999.9999 999999.9999 999999.9999
More information about the NumPy-Discussion
mailing list