Re: [Tutor] Using numpy Array Capabilities

2009-04-13 Thread Wayne Watson
Alan Gauld wrote: "Wayne Watson" wrote Basically, what I would like to do is to take a list like: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] and convert it to; [['0x0', '0x1', '0x2', '0x3', '0x4'], ['0x5', '0x6', '0x7', '0x8', '0x9']] What is the basis of this conversion? Use of pyfits (FITS for

Re: [Tutor] Using numpy Array Capabilities

2009-04-13 Thread Alan Gauld
"Wayne Watson" wrote Basically, what I would like to do is to take a list like: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] and convert it to; [['0x0', '0x1', '0x2', '0x3', '0x4'], ['0x5', '0x6', '0x7', '0x8', '0x9']] What is the basis of this conversion? Why did you split it into two lists? Why conv

[Tutor] Using numpy Array Capabilities

2009-04-12 Thread Wayne Watson
I'm pretty sure numpy can manipulate arrays, but I'm barely familiar with it. Basically, what I would like to do is to take a list like: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] and convert it to; [['0x0', '0x1', '0x2', '0x3', '0x4'], ['0x5', '0x6', '0x7', '0x8', '0x9']] That is, it becomes a matrix of