File size: 1,197 Bytes
0c630fe
8e17be6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
694b002
 
 
 
 
 
 
 
 
 
9d8a16a
8e17be6
 
 
0c630fe
 
8e17be6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import dash
from dash import html

from data.loader import (atmosConc,
                        lifeTimes,
                        prod)
from data.traces import (gas_to_label,
                build_trace_library_gas,
                build_trace_library_production)
from pages.home import home_page
from callbacks.navigation import register_navigation
from callbacks.gas_plot import register_gas_plot

trace_library_gases = build_trace_library_gas(atmosConc.columns)
trace_library_prod = build_trace_library_production()
trace_library = {'gases':trace_library_gases,\
                'production':trace_library_prod}

app = dash.Dash(__name__, suppress_callback_exceptions=True)
app.title = "Bayesian Assessment of Halocarbon Banks"
app.layout = html.Div(
    id="page-content", 
    children=home_page(),
    style={
        'backgroundColor': 'white', 
        'minHeight': '100vh',
        'margin': '0',
        'padding': '0'
    }
)
server = app.server

register_navigation(app, atmosConc, lifeTimes, prod, trace_library)
register_gas_plot(app, atmosConc, lifeTimes, prod, trace_library)

if __name__ == "__main__":
    # app.run(debug=True)
    app.run(host="0.0.0.0", port=7860, debug=False)