Don't check if file is valid

master
Dan Howe 5 years ago
parent c0024c0abd
commit 8cd26d0e4c

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

Loading…
Cancel
Save