[Numpy-discussion] Question about memmap

Gökhan SEVER gokhansever@gmail....
Wed Jun 10 00:26:52 CDT 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.scipy.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