Re: [Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Bryan Fodness
Thank you. That works great! On Nov 13, 2007 7:18 PM, Eike Welk <[EMAIL PROTECTED]> wrote: > Hello Bryan! > > On Wednesday 14 November 2007 00:18, Bryan Fodness wrote: > > I see how to do it in a one-dimenstional array, but do not know the > > syntax for the multi-dimensional case. > > > > >from

Re: [Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Eike Welk
Hello Bryan! On Wednesday 14 November 2007 00:18, Bryan Fodness wrote: > I see how to do it in a one-dimenstional array, but do not know the > syntax for the multi-dimensional case. > > >from numpy import * > > a = zeros((60,40), int) > > fields = {} > field = 10 > fields[field] = '30A', 5 > > iy

[Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Bryan Fodness
I see how to do it in a one-dimenstional array, but do not know the syntax for the multi-dimensional case. from numpy import * a = zeros((60,40), int) fields = {} field = 10 fields[field] = '30A', 5 iy = int(fields[field][1]) ix = int(fields[field][0].rstrip('AB')) for j in range(iy): pu