Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lhcb-dpa
Analysis Productions
LbAPLocal
Commits
60ee1498
Commit
60ee1498
authored
Apr 22, 2022
by
Aidan Richard Wiederhold
Browse files
Set filetype automatically if given a single output job as input
parent
00f59fa3
Pipeline
#3880748
passed with stage
in 5 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/LbAPLocal/utils.py
View file @
60ee1498
...
...
@@ -168,6 +168,13 @@ def recursively_create_input(production_name, job_name, filetype, prod_data):
raise
NotImplementedError
(
f
"Looking for
{
filetype
}
but
{
job_name
}
only produces
{
output_filetypes
}
"
)
else
:
if
len
(
output_filetypes
)
>
1
:
raise
ValueError
(
"An input filetype must be specified when taking input from a multi-output job!"
)
else
:
filetype
=
output_filetypes
[
0
]
# Run the job the desired job depends on
result
=
logging_subprocess_run
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment