Re: [Tutor] Defining Exceptions

2011-02-03 Thread Emile van Sebille
Hi Tom, First, you sent this only to me -- be sure to reply all so that the group can participate. On 2/2/2011 10:25 AM Tom Brauch said... > Thanks, Emile. > > If I replace the question marks in my script with break it throws out > everything before the break (<) and gives me the header starti

Re: [Tutor] Defining Exceptions

2011-02-02 Thread davidheiserca
It's difficult to see exactly what the data looks like as it is received. Where are the line breaks? At the commas? Is the "header" just the first line? Is "1Time" considered part of the header? Is everything after "1Time" considered "data"? I can see several simple alternatives to your method

Re: [Tutor] Defining Exceptions

2011-02-02 Thread Emile van Sebille
On 2/2/2011 6:51 AM Tom Brauch said... All, I am a python neophyte and not terrible well versed in programming (as will become obvious shortly) I have a script which is reading a serial device on a schedule. The device outputs a header at the beginning of every read. I have a data file which