Show empty table for non-wave-probe instruments

master
Dan Howe 5 years ago
parent 183d2af094
commit 6cbb33842e

@ -191,6 +191,7 @@ def read_json_data(json_data):
} }
# Add table # Add table
if info['instrument type'] == 'WP':
table_energy = dash_table.DataTable( table_energy = dash_table.DataTable(
id='datatable-row-ids', id='datatable-row-ids',
columns=[{ columns=[{
@ -212,8 +213,10 @@ def read_json_data(json_data):
'maxWidth': '100px', 'maxWidth': '100px',
}, },
) )
else:
# Return blank table
table_energy = dash_table.DataTable()
if info['instrument type'] == 'WP':
elements = html.Div([ elements = html.Div([
graph_timeseries, graph_timeseries,
html.Div([ html.Div([
@ -223,12 +226,6 @@ 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