|
|
@ -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,14 +205,21 @@ def read_json_data(json_data):
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
elements = html.Div([
|
|
|
|
if json.loads(json_data)['instrument type'] == 'WP':
|
|
|
|
graph_timeseries,
|
|
|
|
elements = html.Div([
|
|
|
|
html.Div([
|
|
|
|
graph_timeseries,
|
|
|
|
html.Div([graph_energy], className='six columns'),
|
|
|
|
html.Div([
|
|
|
|
html.Div([table_energy], className='six columns')
|
|
|
|
html.Div([graph_energy], className='six columns'),
|
|
|
|
]),
|
|
|
|
html.Div([table_energy], className='six columns')
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|