|
|
|
@ -108,6 +108,7 @@ def parse_contents(contents, filename):
|
|
|
|
|
json_data['spectrum'] = dfs.to_json(orient='table')
|
|
|
|
|
json_data['statistics'] = stats.to_json(orient='table')
|
|
|
|
|
json_data['filename'] = filename
|
|
|
|
|
json_data['instrument type'] = inst_type
|
|
|
|
|
|
|
|
|
|
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([
|
|
|
|
|
graph_timeseries,
|
|
|
|
|
html.Div([
|
|
|
|
@ -213,6 +215,12 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|