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
Admin message
GitLab has been upgraded. See what's new in the
Changelog
.
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
81ba4067
Commit
81ba4067
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/main' into main
parents
2498789f
d6b9d7e4
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
coordinator/ProcessorEpidemiology.py
+7
-9
7 additions, 9 deletions
coordinator/ProcessorEpidemiology.py
with
7 additions
and
9 deletions
coordinator/ProcessorEpidemiology.py
+
7
−
9
View file @
81ba4067
...
@@ -19,11 +19,9 @@ from rasterio import open as rio_open
...
@@ -19,11 +19,9 @@ from rasterio import open as rio_open
from
EpiModel
import
(
# created by rs481
from
EpiModel
import
(
# created by rs481
EpiAnalysis
,
EpiAnalysis
,
EpiModel
,
EpiModel
,
EpiPrep
,
EpiPrepLister
,
EpiPrepLoader
,
plotRaster
plotRaster
)
)
from
EpiModel.EpiPrep
import
lister
,
loader
,
prep
from
ews_postprocessing.epi.epi_post_processor
import
EPIPostPostProcessor
from
ews_postprocessing.epi.epi_post_processor
import
EPIPostPostProcessor
from
ProcessorUtils
import
(
from
ProcessorUtils
import
(
...
@@ -272,7 +270,7 @@ def process_in_job_epi(jobPath,status,config,component):
...
@@ -272,7 +270,7 @@ def process_in_job_epi(jobPath,status,config,component):
# Use config-defined file lister
# Use config-defined file lister
file_lister_dep_name
=
config_epi
[
'
Deposition
'
][
'
FileListerFunction
'
]
file_lister_dep_name
=
config_epi
[
'
Deposition
'
][
'
FileListerFunction
'
]
file_lister_dep
=
getattr
(
EpiPrepL
ister
,
file_lister_dep_name
)
file_lister_dep
=
getattr
(
l
ister
,
file_lister_dep_name
)
config_for_lister
=
config
.
copy
()
config_for_lister
=
config
.
copy
()
config_for_lister
.
update
(
config_epi
)
config_for_lister
.
update
(
config_epi
)
...
@@ -286,10 +284,10 @@ def process_in_job_epi(jobPath,status,config,component):
...
@@ -286,10 +284,10 @@ def process_in_job_epi(jobPath,status,config,component):
try
:
try
:
EpiP
rep
.
prep_input
(
config_for_lister
,
start_date
,
end_date
,
p
rep
.
prep_input
(
config_for_lister
,
start_date
,
end_date
,
component
=
'
Deposition
'
,
component
=
'
Deposition
'
,
file_lister
=
file_lister_dep
,
file_lister
=
file_lister_dep
,
file_loader
=
EpiPrepL
oader
.
load_NAME_file
,
file_loader
=
l
oader
.
load_NAME_file
,
lister_kwargs
=
lister_kwargs
,
lister_kwargs
=
lister_kwargs
,
**
loader_kwargs
)
**
loader_kwargs
)
...
@@ -363,16 +361,16 @@ def process_in_job_epi(jobPath,status,config,component):
...
@@ -363,16 +361,16 @@ def process_in_job_epi(jobPath,status,config,component):
# Use config-defined file lister
# Use config-defined file lister
file_lister_env_name
=
config_epi
[
'
Environment
'
][
'
FileListerFunction
'
]
file_lister_env_name
=
config_epi
[
'
Environment
'
][
'
FileListerFunction
'
]
file_lister_env
=
getattr
(
EpiPrepL
ister
,
file_lister_env_name
)
file_lister_env
=
getattr
(
l
ister
,
file_lister_env_name
)
config_for_lister
=
config
.
copy
()
config_for_lister
=
config
.
copy
()
config_for_lister
.
update
(
config_epi
)
config_for_lister
.
update
(
config_epi
)
try
:
try
:
EpiP
rep
.
prep_input
(
config_for_lister
,
start_date
,
end_date
,
p
rep
.
prep_input
(
config_for_lister
,
start_date
,
end_date
,
component
=
'
Environment
'
,
component
=
'
Environment
'
,
file_loader
=
EpiPrepL
oader
.
load_env_file
,
file_loader
=
l
oader
.
load_env_file
,
file_lister
=
file_lister_env
)
file_lister
=
file_lister_env
)
assert
os
.
path
.
isfile
(
config_epi
[
'
Environment
'
][
'
FileNamePrepared
'
])
assert
os
.
path
.
isfile
(
config_epi
[
'
Environment
'
][
'
FileNamePrepared
'
])
...
...
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