I am trying to export some data from a complex numpy calculation to a text file so I can analyze it in Excel or something. The data type of the array I'm trying to export is slightly complicated and is defined like:
rowType = np.dtype([("SN", "S8"),
("Freqs", np.uint16, (3,)),
("Peaks", np.float32, (3,))])
So each "row" of this array is an 8-character string, a 3-element subarray of 16-bit integers, and a 3-element subarray of floats. I want to have one row per row in the text file, with tabs between each element of the subarrays. When I call savetxt to export the populated array, what would I supply to the fmt parameter to keep it from throwing an exception?