Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pmall
app_OP
Commits
0f8ac4b2
Commit
0f8ac4b2
authored
Jan 29, 2020
by
Samuël Weber
Browse files
fix
parent
531ea622
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/app_estimateOP.py
View file @
0f8ac4b2
...
...
@@ -73,6 +73,7 @@ layout = dbc.Container(
width
=
9
,
children
=
[
ac
.
get_options_estimate_component
(),
dcc
.
Markdown
(
"### First order estimator of OP from PM10 concentration"
),
dcc
.
Loading
(
dcc
.
Graph
(
id
=
"graph"
)),
ac
.
get_estimate_warning_component
()
]
...
...
@@ -131,6 +132,8 @@ def update_output(content, name, clicked):
else
:
if
content
is
not
None
:
data
,
columns
,
errors
=
parse_contents
(
content
,
name
)
else
:
raise
PreventUpdate
colnames
=
[
item
[
'name'
]
for
item
in
columns
]
...
...
@@ -167,7 +170,7 @@ def update_graph(dfpm, OPtype, temporality):
:returns: TODO
"""
if
dfpm
is
None
:
if
dfpm
is
None
or
len
(
dfpm
)
==
0
:
raise
PreventUpdate
dfpm
=
pd
.
DataFrame
(
dfpm
)
...
...
@@ -194,5 +197,8 @@ def update_graph(dfpm, OPtype, temporality):
color
=
"Factor"
,
color_discrete_map
=
colors
)
fig
.
update_yaxes
(
{
"title"
:
"OP {} estimation (nmol.min⁻¹.m⁻³)"
.
format
(
OPtype
)}
)
return
fig
assets/local.css
View file @
0f8ac4b2
...
...
@@ -6,11 +6,11 @@
margin-top
:
10px
;
}
#main
,
h2
{
#main
h2
{
color
:
darkmagenta
;
}
#main
,
#graph-col
h3
{
#main
h3
,
#graph-col
h3
,
.list-group-item-heading
{
color
:
darkolivegreen
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment