added menu items
This commit is contained in:
@@ -1437,18 +1437,16 @@ def handle_nonpainsled(f2, fileformat, summary=''):
|
||||
f_to_be_deleted = f2
|
||||
# should delete file
|
||||
f2 = f2[:-4] + 'o.csv'
|
||||
try:
|
||||
row2 = rrdata(df = row.df)
|
||||
if fileformat == 'speedcoach2':
|
||||
# impeller consistency
|
||||
impellerdata, consistent, ratio = row.impellerconsistent(threshold=0.3)
|
||||
if impellerdata and consistent:
|
||||
impeller = True
|
||||
if impellerdata and not consistent:
|
||||
row2.use_gps()
|
||||
row2.write_csv(f2, gzip=True)
|
||||
except:
|
||||
return (0,'',0,0,'',impeller)
|
||||
row2 = rrdata(df = row.df)
|
||||
if 'speedcoach2' in fileformat:
|
||||
# impeller consistency
|
||||
impellerdata, consistent, ratio = row.impellerconsistent(threshold=0.3)
|
||||
if impellerdata and consistent:
|
||||
impeller = True
|
||||
if impellerdata and not consistent:
|
||||
row2.use_gpsdata()
|
||||
row2.write_csv(f2, gzip=True)
|
||||
|
||||
|
||||
# os.remove(f2)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user