Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
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
atlas
athena
Commits
6f62b09d
Commit
6f62b09d
authored
5 months ago
by
Tim Martin
Browse files
Options
Downloads
Patches
Plain Diff
Give the option to pass in the arg parser
parent
1eb2b0d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!75553
2024-11-01: merge of 24.0 into main
,
!75484
Let an argument parser be passed in to runHLT.athenaCfg
,
!75127
Draft: Seeder types rebase2 grid fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TriggerCommon/TriggerJobOpts/python/runHLT.py
+3
-2
3 additions, 2 deletions
Trigger/TriggerCommon/TriggerJobOpts/python/runHLT.py
with
3 additions
and
2 deletions
Trigger/TriggerCommon/TriggerJobOpts/python/runHLT.py
+
3
−
2
View file @
6f62b09d
...
...
@@ -132,7 +132,7 @@ def athenaHLTCfg(flags):
return
cfg
def
athenaCfg
(
flags
):
def
athenaCfg
(
flags
,
parser
=
None
):
"""
Top-level cfg function when running in athena
"""
from
AthenaConfiguration.Enums
import
Format
...
...
@@ -143,7 +143,8 @@ def athenaCfg(flags):
flags
.
Common
.
isOnline
=
lambda
f
:
not
f
.
Input
.
isMC
# Add options to command line parser
parser
=
flags
.
getArgumentParser
()
if
not
parser
:
parser
=
flags
.
getArgumentParser
()
parser
.
add_argument
(
'
--postExec
'
,
metavar
=
'
CMD
'
,
help
=
'
Commands executed after Python configuration
'
)
...
...
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