Peiris
asked on
loadtxt using numpy in python
Hi
I have data files that has blocks of data (see the file attached). I need to read only the first block of data in to an array (index 0) using python, at this point i load all the data. I can do this by checking the value of idex in the array data after I load them, but I was wondering if there is any easy way to do this.
I use 'loadtxt' in numpy to load the data.
thanks in advance
~Prabath
admconstraints--hamiltonian.x.txt
I have data files that has blocks of data (see the file attached). I need to read only the first block of data in to an array (index 0) using python, at this point i load all the data. I can do this by checking the value of idex in the array data after I load them, but I was wondering if there is any easy way to do this.
I use 'loadtxt' in numpy to load the data.
thanks in advance
~Prabath
admconstraints--hamiltonian.x.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.