|
|
@ -50,7 +50,6 @@ def parse_contents(contents, filename):
|
|
|
|
|
|
|
|
|
|
|
|
# Check instrument type
|
|
|
|
# Check instrument type
|
|
|
|
inst_type = basename.split('_')[-1]
|
|
|
|
inst_type = basename.split('_')[-1]
|
|
|
|
try:
|
|
|
|
|
|
|
|
if inst_type == 'WP':
|
|
|
|
if inst_type == 'WP':
|
|
|
|
df = pd.read_csv(io.StringIO(decoded.decode('utf-8')),
|
|
|
|
df = pd.read_csv(io.StringIO(decoded.decode('utf-8')),
|
|
|
|
index_col=0,
|
|
|
|
index_col=0,
|
|
|
@ -71,9 +70,6 @@ def parse_contents(contents, filename):
|
|
|
|
header=3,
|
|
|
|
header=3,
|
|
|
|
skiprows=[4])
|
|
|
|
skiprows=[4])
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
|
|
|
return html.Div(['There was an error processing this file.'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Zero time series based on first 5s
|
|
|
|
# Zero time series based on first 5s
|
|
|
|
df -= df[:5].mean()
|
|
|
|
df -= df[:5].mean()
|
|
|
|
|
|
|
|
|
|
|
|