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