Only show tabe for wave probes

master
Dan Howe 5 years ago
parent f4ad435cd1
commit ce35c80e59

@ -108,6 +108,7 @@ def parse_contents(contents, filename):
json_data['spectrum'] = dfs.to_json(orient='table') json_data['spectrum'] = dfs.to_json(orient='table')
json_data['statistics'] = stats.to_json(orient='table') json_data['statistics'] = stats.to_json(orient='table')
json_data['filename'] = filename json_data['filename'] = filename
json_data['instrument type'] = inst_type
return json.dumps(json_data) return json.dumps(json_data)
@ -204,6 +205,7 @@ def read_json_data(json_data):
}, },
) )
if json.loads(json_data)['instrument type'] == 'WP':
elements = html.Div([ elements = html.Div([
graph_timeseries, graph_timeseries,
html.Div([ html.Div([
@ -213,6 +215,12 @@ def read_json_data(json_data):
html.Div(id='datatable-row-ids-container') html.Div(id='datatable-row-ids-container')
]) ])
else:
# Don't include spectral data for non-wave instruments
elements = html.Div(
[graph_timeseries,
html.Div(id='datatable-row-ids-container')])
return elements return elements

Loading…
Cancel
Save