comparison cut_timeseries.py @ 3:f188eb0b526d draft

planemo upload commit 2d22bc12c66a3d1949d4bf4c84e7ce7c4610383c-dirty
author stevecassidy
date Wed, 14 Dec 2016 21:53:57 -0500
parents 6f4db0e89117
children 0026cd452d0e
comparison
equal deleted inserted replaced
2:6f4db0e89117 3:f188eb0b526d
66 66
67 collect = [] 67 collect = []
68 with open(tsfile, 'r') as fd: 68 with open(tsfile, 'r') as fd:
69 reader = csv.reader(fd, dialect=csv.excel_tab) 69 reader = csv.reader(fd, dialect=csv.excel_tab)
70 for row in reader: 70 for row in reader:
71 if row[0] == 'sampletime': 71 if row[0] == 'time':
72 tsheader = row 72 tsheader = row
73 elif float(row[0]) > start and float(row[0]) < end: 73 elif float(row[0]) > start and float(row[0]) < end:
74 collect.append(row) 74 collect.append(row)
75 75
76 # grab the row at the cut point(s) 76 # grab the row at the cut point(s)