Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MLWorkflowInterface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
DestinE
MLWorkflowInterface
Commits
af69aeca
Commit
af69aeca
authored
1 year ago
by
Sabine Schröder
Browse files
Options
Downloads
Patches
Plain Diff
a button for downloading ML Downscaling results have been added (available for O3 and NO2/NOx data)
parent
158654f9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pages/dashboard.py
+21
-0
21 additions, 0 deletions
src/pages/dashboard.py
src/pages/dashboard_translations.py
+3
-0
3 additions, 0 deletions
src/pages/dashboard_translations.py
with
24 additions
and
0 deletions
src/pages/dashboard.py
+
21
−
0
View file @
af69aeca
...
...
@@ -502,8 +502,29 @@ def generate_eurad_im_output_body(language_id, context, jobnr):
dbc
.
Checkbox
(
id
=
"
eurad_im_downscaling
"
,
label
=
f
"
{
guitr
.
show_downscaling_label
[
language_id
]
}
"
,
value
=
0
,
disabled
=
True
)
],
width
=
12
)
],
class_name
=
"
row mt-3f
"
),
dbc
.
Row
([
dbc
.
Col
(
html
.
Br
(),
width
=
12
),
dbc
.
Col
([
dbc
.
Button
(
f
"
{
guitr
.
ml_download_label
[
language_id
]
}
"
,
id
=
"
ml_downscaling_data_download
"
,
n_clicks
=
0
,
class_name
=
"
fzj_style_btn
"
),
],
width
=
12
),
dbc
.
Col
([
dbc
.
Label
(
f
"
{
guitr
.
ml_download_explanation
[
language_id
]
}
"
,
id
=
"
ml_download_explanation
"
,
style
=
{
'
font-size
'
:
'
12px
'
}),
],
width
=
12
)
],
class_name
=
"
row mt-3f
"
),
]
@callback
(
Output
(
'
ml_downscaling_data_download
'
,
'
disabled
'
),
[
Input
(
'
variable-dropdown-output
'
,
'
value
'
)]
)
def
update_button_disabled
(
selected_option
):
if
selected_option
==
'
O3
'
or
selected_option
==
'
NO2
'
:
return
False
else
:
return
True
def
generate_eurad_im_output_modal
(
jobnr
=
None
,
lisopen
=
False
,
language_id
=
0
):
return
html
.
Div
([
...
...
This diff is collapsed.
Click to expand it.
src/pages/dashboard_translations.py
+
3
−
0
View file @
af69aeca
...
...
@@ -124,6 +124,9 @@ day_label = ["day", "Tag"]
day_plural_label
=
[
"
s
"
,
"
e
"
]
download_label
=
[
"
Download Data
"
,
"
Daten herunterladen
"
]
im_download_label
=
[
"
Download Plots
"
,
"
Plots herunterladen
"
]
ml_download_label
=
[
"
Download ML Downscaling data (*)
"
,
"
ML Downscaling Ergebnisse (*) herunterladen
"
]
ml_download_explanation
=
[
"
(*): ML Downscaling for NO2 corresponds to downscaling NOx
"
,
"
(*): ML Downscaling für NO2 entspricht dem Downscaling von NOx
"
]
downscaling_label
=
[
"
Postprocessing with ML-Downscaling
"
,
"
Postprocessing mit ML-Downscaling
"
]
show_downscaling_label
=
[
"
Show results with ML downscaling
"
,
"
Ergebnisse mit ML-Downscaling anzeigen
"
]
show_target_plot_label
=
[
"
Show target plot
"
,
"
Ergebnisse als Schwellwertplot anzeigen
"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment