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
7e74936b
Commit
7e74936b
authored
3 years ago
by
J.W. Smith
Browse files
Options
Downloads
Patches
Plain Diff
fix: Raise error for incorrect deposition input
parent
9599ef12
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
ProcessorComponents.py
+3
-2
3 additions, 2 deletions
ProcessorComponents.py
with
3 additions
and
2 deletions
ProcessorComponents.py
+
3
−
2
View file @
7e74936b
...
...
@@ -1088,8 +1088,9 @@ def process_in_job_dep(jobPath,status,config,component):
# basic check that contents are as expected
# 132 files of NAME .txt timesteps and one summary png file
if
len
(
glob
(
f
"
{
jobPath
}
/
{
file_name
}
/deposition_srcs_allregions_C1_T*.txt
"
))
!=
56
:
logger
.
warning
(
f
"
Insufficient contents of input tar file (are sources.txt and sourcelocations.txt missing?)
"
)
msg
=
f
"
Unexpect number of deposition .txt files in input tar file. Expected 56.
"
logger
.
error
(
msg
)
raise
RuntimeError
(
msg
)
return
def
create_epi_config_string
(
config
,
jobPath
,
startString
,
endString
):
...
...
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