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
  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
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to