Re: Printing to file, how do I do it efficiently?

2006-11-10 Thread Cameron Walsh
Robert Kern wrote: Cameron Walsh wrote: Hi all, I have a numpy.array of 89x512x512 uint8's, set up with code like this: numpy questions are best asked on the numpy list, not here. At first I thought it was a generic python question, since it had more to do with writing array data to file

Printing to file, how do I do it efficiently?

2006-11-09 Thread Cameron Walsh
Hi all, I have a numpy.array of 89x512x512 uint8's, set up with code like this: data=numpy.array([],dtype=uint8) data.resize((89,512,512)) # Data filled in about 4 seconds from 89 image slices snip lots of processing code I first tried writing this data to a binary raw format (for use in a

Re: Printing to file, how do I do it efficiently?

2006-11-09 Thread Robert Kern
Cameron Walsh wrote: Hi all, I have a numpy.array of 89x512x512 uint8's, set up with code like this: numpy questions are best asked on the numpy list, not here. http://www.scipy.org/Mailing_Lists data=numpy.array([],dtype=uint8) data.resize((89,512,512)) You might want to look at using