Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Davide Di Croce
athena
Commits
c3e4b60b
Commit
c3e4b60b
authored
10 months ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
DerivationSkeleton: fix flake8-bugbear warning
B005 Using .strip() with multi-character strings is misleading
parent
fa6d5786
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/DerivationFramework/DerivationFrameworkConfiguration/python/DerivationSkeleton.py
+2
-2
2 additions, 2 deletions
...vationFrameworkConfiguration/python/DerivationSkeleton.py
with
2 additions
and
2 deletions
PhysicsAnalysis/DerivationFramework/DerivationFrameworkConfiguration/python/DerivationSkeleton.py
+
2
−
2
View file @
c3e4b60b
...
...
@@ -44,7 +44,7 @@ def fromRunArgs(runArgs):
# For the time being one parent (primary stream) can have multiple children (augmentations)
# However, an augmentation cannot have multiple parents, which will be supported in the future
if
hasattr
(
runArgs
,
'
augmentations
'
):
for
val
in
getattr
(
runArgs
,
'
augmentations
'
)
:
for
val
in
runArgs
.
augmentations
:
if
'
:
'
not
in
val
or
len
(
val
.
split
(
'
:
'
))
!=
2
:
logDerivation
.
error
(
'
Derivation job started, but with wrong augmentation syntax - aborting
'
)
raise
ValueError
(
'
Invalid augmentation argument: {0}
'
.
format
(
val
))
...
...
@@ -71,7 +71,7 @@ def fromRunArgs(runArgs):
for
runArg
in
dir
(
runArgs
):
if
'
output
'
in
runArg
and
'
File
'
in
runArg
and
'
Type
'
not
in
runArg
and
'
NTUP_PHYSVAL
'
not
in
runArg
:
outputFileName
=
getattr
(
runArgs
,
runArg
)
flagString
=
f
'
Output.
{
runArg
.
strip
(
"
output
"
)
}
Name
'
flagString
=
f
'
Output.
{
runArg
.
removeprefix
(
"
output
"
)
}
Name
'
flags
.
addFlag
(
flagString
,
outputFileName
)
flags
.
addFlag
(
f
'
Output.doWrite
{
runArg
.
removeprefix
(
"
output
"
).
removesuffix
(
"
File
"
)
}
'
,
True
)
flags
.
Output
.
doWriteDAOD
=
True
...
...
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