
In principle there is no such format in the sense of other numerical environments. But it is possible to simple put the data into a python module and import that, like # Datafile data.py import Numeric data=Numeric.array([[1,2,3],[4,5,6],[7,8,9]]) # in python (other module or interactive session) from data import data print data HTH __Janko Peter I. Hansen writes:
Hi,
I'm trying to find out what format a matrix input file should have in numpy. example :
I have the matrix : [[1 2 3 4 5 6 7 8 9]]
and want to read it to nympy from a text-filen that is easy for a user to generate in an editor.
Can you tell me how to do that. I read the manual and it didnøt given much af on idea.
I thank you in advance
Peter I. Hansen
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/numpy-discussion