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
8f6831f4
Commit
8f6831f4
authored
10 months ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
repackagaing to remove 'common' dirs
parent
b6707976
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ews/coordinator/processor_environment.py
+5
-6
5 additions, 6 deletions
ews/coordinator/processor_environment.py
with
5 additions
and
6 deletions
ews/coordinator/processor_environment.py
+
5
−
6
View file @
8f6831f4
...
@@ -49,7 +49,7 @@ class ProcessorEnvironment(ProcessorBase):
...
@@ -49,7 +49,7 @@ class ProcessorEnvironment(ProcessorBase):
# Processing files available for clearing
# Processing files available for clearing
proc_out
[
'
clearup
'
]
=
[]
proc_out
[
'
clearup
'
]
=
[]
logger
.
info
(
'
Copying file from remote server to job directory
'
)
logger
.
debug
(
'
Copying file from remote server to job directory
'
)
data_result
=
get_input_data
(
jobPath
,
config
,
component
)
data_result
=
get_input_data
(
jobPath
,
config
,
component
)
...
@@ -59,11 +59,10 @@ class ProcessorEnvironment(ProcessorBase):
...
@@ -59,11 +59,10 @@ class ProcessorEnvironment(ProcessorBase):
proc_out
[
'
clearup
'
]
+=
data_result
[
'
clearup
'
]
proc_out
[
'
clearup
'
]
+=
data_result
[
'
clearup
'
]
region
=
config
[
'
RegionName
'
]
region
=
config
[
'
RegionName
'
]
logger
.
info
(
f
"
Calling environmental suitability 2.0 for
{
region
}
so wait for output to appear
"
)
pipeline_config
=
config
[
"
Environment
"
]
pipeline_config
=
config
[
"
Environment
"
]
try
:
try
:
logger
.
info
(
f
"
Calling environmental suitability 2.0 for
{
region
}
"
)
self
.
run_pipeline
(
pipeline_config
,
region
,
config
[
"
StartString
"
])
self
.
run_pipeline
(
pipeline_config
,
region
,
config
[
"
StartString
"
])
except
:
except
:
logger
.
exception
(
f
"
Some failure when running EnvSuitPipeline.py
"
)
logger
.
exception
(
f
"
Some failure when running EnvSuitPipeline.py
"
)
...
@@ -96,7 +95,7 @@ class ProcessorEnvironment(ProcessorBase):
...
@@ -96,7 +95,7 @@ class ProcessorEnvironment(ProcessorBase):
def
getParameter
(
config
,
parameter
):
def
getParameter
(
config
,
parameter
):
'''
Get a parameter from a config.
'''
'''
Get a parameter from a config.
'''
logger
.
info
(
f
"
Getting
{
parameter
}
from the config
"
)
logger
.
debug
(
f
"
Getting
{
parameter
}
from the config
"
)
try
:
try
:
result
=
config
[
parameter
]
result
=
config
[
parameter
]
...
@@ -153,7 +152,7 @@ class ProcessorEnvironment(ProcessorBase):
...
@@ -153,7 +152,7 @@ class ProcessorEnvironment(ProcessorBase):
'''
Run post processing with the :class:`met_processing.runner.common.job_runner` package.
'''
'''
Run post processing with the :class:`met_processing.runner.common.job_runner` package.
'''
logger
.
info
(
f
"
Running post-processing.
"
)
logger
.
info
(
f
"
Running post-processing.
"
)
from
ews.met_processing.runner
.common
import
job_runner
from
ews.met_processing.runner
import
job_runner
job_runner
.
run_post_processing
(
run_params
,
sys_params
,
processor_name
)
job_runner
.
run_post_processing
(
run_params
,
sys_params
,
processor_name
)
...
...
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