Skip to content

Commit ffbf2f2

Browse files
authored
Update app.py
1 parent b3e51f8 commit ffbf2f2

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

app.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from dash import Dash, html, dcc, dash_table
22
from dash.dependencies import Input, Output, State
33
import dash_mantine_components as dmc
4-
# import plotly.express as px
54
import pandas as pd
65
from scr import conv
76
from flask import Flask
87
import datetime as dt
98
import logging
109

11-
# ---------------- Logging Setup ----------------
10+
1211
logger = logging.getLogger('ct')
1312
logger.setLevel(logging.DEBUG)
1413
ch = logging.StreamHandler()
@@ -17,7 +16,7 @@
1716
ch.setFormatter(formatter)
1817
logger.addHandler(ch)
1918

20-
# ---------------- Flask/Dash Setup ----------------
19+
2120
server = Flask(__name__)
2221
external_stylesheets = ['https://fonts.googleapis.com/css2?family=Play&display=swap']
2322

@@ -29,22 +28,23 @@
2928
)
3029
app.title = 'MS-FP'
3130

32-
# ---------------- App Layout ----------------
31+
3332
app.layout = dmc.MantineProvider([
3433
html.Div([
3534
html.H1('MS file parser', style={"font-family": "'Play'"}),
3635
dmc.Group([
37-
dmc.Chips(
36+
dmc.ChipGroup(
3837
id="vartype",
39-
data=[
40-
{"value": "Conc.", "label": "Concentration"},
41-
{"value": "Response", "label": "Response"},
42-
{"value": "Area", "label": "Area"}
38+
value="Conc.",
39+
multiple=False,
40+
children=[
41+
dmc.Chip(value="Conc.", label="Concentration"),
42+
dmc.Chip(value="Response", label="Response"),
43+
dmc.Chip(value="Area", label="Area"),
4344
],
44-
value="Conc."
4545
),
4646
dmc.Checkbox(id="includeIS", label="Include internal Stds")
47-
], position='left'),
47+
], justify='flex-start'),
4848

4949
dmc.Space(h=10),
5050

@@ -76,7 +76,7 @@
7676
])
7777
])
7878

79-
# ---------------- Callbacks ----------------
79+
8080
@app.callback(
8181
Output("download-dataframe-csv", "data"),
8282
Input("btn_csv", "n_clicks"),

0 commit comments

Comments
 (0)