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
6d0e043a
Commit
6d0e043a
authored
5 months ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
adding file-based logging to epi fit (to allow different configuration when running in gitlab-ci)
parent
7a91ef92
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ews/coordinator/processor_base.py
+3
-3
3 additions, 3 deletions
ews/coordinator/processor_base.py
ews/coordinator/utils/processor_utils.py
+1
-1
1 addition, 1 deletion
ews/coordinator/utils/processor_utils.py
with
4 additions
and
4 deletions
ews/coordinator/processor_base.py
+
3
−
3
View file @
6d0e043a
...
...
@@ -146,7 +146,7 @@ class ProcessorBase:
Generate the job directory path
:param config:
:return:
:return:
`
"""
short_name
:
str
=
config
[
'
short_name
'
]
start_date
:
str
=
config
[
'
StartString
'
]
...
...
@@ -331,7 +331,7 @@ class ProcessorBase:
if
k
not
in
config
.
keys
():
config
[
k
]
=
v
else
:
print
(
f
"
Key
{
k
}
already present in run config - not adding key with same name from
"
print
(
f
"
Key
'
{
k
}
'
already present in run config - not adding key with same name from
"
f
"
the sys_config
"
)
"""
...
...
@@ -340,7 +340,7 @@ class ProcessorBase:
"""
for
k
,
v
in
args
.
items
():
if
k
in
config
.
keys
():
print
(
f
"
Key
{
k
}
already present in run config - overriding key with same name from
"
print
(
f
"
Key
'
{
k
}
'
already present in run config - overriding key with same name from
"
f
"
the sys args
"
)
config
[
k
]
=
v
...
...
This diff is collapsed.
Click to expand it.
ews/coordinator/utils/processor_utils.py
+
1
−
1
View file @
6d0e043a
...
...
@@ -396,7 +396,7 @@ def setup_logging(job_file_path: str,
with
open
(
json_file_path
,
'
r
'
)
as
f
:
log_config_dict
=
json
.
load
(
f
)
# replace the {arg_string}
r
oken in the logging json with the values passed in the command line. This allows the
# replace the {arg_string}
t
oken in the logging json with the values passed in the command line. This allows the
# command line arguments to be logged.
log_config_dict
[
'
formatters
'
][
'
detailed
'
][
'
format
'
]
=
\
log_config_dict
[
'
formatters
'
][
'
detailed
'
][
'
format
'
].
replace
(
"
{arg_string}
"
,
arg_string
)
...
...
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