-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
51 lines (45 loc) · 1.67 KB
/
app.py
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
39
40
41
42
43
44
45
46
47
48
49
50
51
import dash_mantine_components as dmc
from dash import Dash, dcc, html
from callbacks.config_loader import *
from callbacks.controls_calibration import *
from callbacks.controls_reduction import *
from callbacks.progress import *
from callbacks.reduction import *
from callbacks.scan import *
from components.config_loader import layout as config_layout
from components.controls_calibration import layout as controls_calibration_layout
from components.controls_reduction import layout as controls_reduction_layout
from components.progress import layout as progress_layout
from components.reduction import layout as reduction_layout
from components.scan import layout as scan_layout
# Initialize the Dash app
app = Dash(__name__)
app.title = "Workflow Configuration"
application = app.server
app.layout = dmc.MantineProvider(
theme={"colorScheme": "light"},
children=[
dmc.Center(progress_layout()),
dcc.Store(id="prefect-flow-run", data={"id": None, "result_uri": None}),
dcc.Interval(id="prefect-flow-check", interval=1000),
dmc.Grid(
# grow=True,
children=[
dmc.Col(
html.Div(
children=[
scan_layout(),
controls_calibration_layout(),
controls_reduction_layout(),
config_layout(),
]
),
span=6,
),
dmc.Col(html.Div(children=[reduction_layout()]), span=6),
],
),
],
)
if __name__ == "__main__":
app.run(debug=True, host="127.0.0.1", port="8095")