FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
43555c81
Commit
43555c81
authored
2 years ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
restoring post processing calls after not doing the last merge properly...
parent
70b7fdc0
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessorDeposition.py
+15
-15
15 additions, 15 deletions
ProcessorDeposition.py
with
15 additions
and
15 deletions
ProcessorDeposition.py
+
15
−
15
View file @
43555c81
...
...
@@ -10,13 +10,13 @@ from string import Template
import
iris
from
iris.cube
import
CubeList
from
plotting.common.plotting_coordinator.ews_depo_disease_plotting_coordinator
import
EWSPlottingDepoBase
from
ProcessorUtils
import
(
get_only_existing_globs
,
subprocess_and_log
,
add_filters_to_sublogger
,
)
from
ews_postprocessing.deposition.deposition_post_processor
import
DepositionPostProcessor
logger
=
logging
.
getLogger
(
'
Processor.Deposition
'
)
add_filters_to_sublogger
(
logger
)
...
...
@@ -106,23 +106,23 @@ def process_EWS_plotting_dep(jobPath,config):
logger
.
info
(
f
"
Running EWS-Plotting with the following configs:
\n
{
sys_config
}
\n
{
name_extraction_config
}
\n
{
run_config
}
\n
{
run_config_norm
}
\n
{
chart_config
}
"
)
depo_p
lotter
=
EWSPlottingDepoBase
()
depo_p
lotte
r
.
set_param_config_files
(
sys_config_file_arg
=
sys_config
,
depo_name_extraction_config_file_arg
=
name_extraction_config
,
chart_config_file_arg
=
chart_config
,
depo_plotting_run_config_file_arg
=
run_config
,
depo_plotting_normalized_run_config_file_arg
=
run_config_norm
,
name_file_wildcard_arg
=
name_file_wildcard
,
wheat_sources_dir_arg
=
deposition_path
,
output_dir_arg
=
output_dir
,
issue_date_arg
=
config
[
'
StartString
'
],
extraction_file_prefix_arg
=
extraction_file_prefix
)
depo_p
rocessor
=
DepositionPostProcessor
()
depo_p
rocesso
r
.
set_param_config_files
(
sys_config_file_arg
=
sys_config
,
depo_name_extraction_config_file_arg
=
name_extraction_config
,
chart_config_file_arg
=
chart_config
,
depo_plotting_run_config_file_arg
=
run_config
,
depo_plotting_normalized_run_config_file_arg
=
run_config_norm
,
name_file_wildcard_arg
=
name_file_wildcard
,
wheat_sources_dir_arg
=
deposition_path
,
output_dir_arg
=
output_dir
,
issue_date_arg
=
config
[
'
StartString
'
],
extraction_file_prefix_arg
=
extraction_file_prefix
)
# asia/east africa env suit should not perform normalization, false gets passed here for these areas
depo_p
lotte
r
.
name_extract_params
.
NORMALIZE
=
(
normalize
.
upper
()
==
"
TRUE
"
)
depo_p
rocesso
r
.
name_extract_params
.
NORMALIZE
=
(
normalize
.
upper
()
==
"
TRUE
"
)
depo_p
lotter
.
plot_depo
()
depo_p
rocessor
.
process
()
# check the output
EWSPlottingOutputDir
=
f
"
{
output_dir
}
/images/
"
...
...
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