Please Unsubscribe my membership from Python
tutorlist.
List Password //
URL
tutor@python.org hariom
Planet Earth is in the hot seat. Know more -
http://in.search.yahoo.com/
On Sat, May 31, 2008 at 3:43 PM, Bryan Fodness <[EMAIL PROTECTED]> wrote:
> I am trying to read a long string of values separated by a backslash into an
> array of known size.
>
> Here is my attempt,
>
> from numpy import *
> ay, ax = 384, 512
> a = zeros([ay, ax])
> for line in open('out.out'):
>
I am trying to read a long string of values separated by a backslash into an
array of known size.
Here is my attempt,
from numpy import *
ay, ax = 384, 512
a = zeros([ay, ax])
for line in open('out.out'):
data = line.split('\\')
k = 0
for i in range(ay):
for j in range(ax):
a[i, j