Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DaVinci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LHCb
DaVinci
Commits
dcc22b79
Commit
dcc22b79
authored
4 years ago
by
Eduardo Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
Adapt CombineNode arguments to snake_case convention
parent
05e72b6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1103
Draft: Add AnalysisHelpers to DaVinci Stack
,
!507
Adapt PyConf API to snake_case convention
Pipeline
#2357523
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Phys/DaVinci/python/DaVinci/config.py
+8
-8
8 additions, 8 deletions
Phys/DaVinci/python/DaVinci/config.py
Phys/DaVinci/tests/dummy_no_davinci.py
+1
-1
1 addition, 1 deletion
Phys/DaVinci/tests/dummy_no_davinci.py
with
9 additions
and
9 deletions
Phys/DaVinci/python/DaVinci/config.py
+
8
−
8
View file @
dcc22b79
...
...
@@ -51,8 +51,8 @@ class DVSelection(namedtuple('DVSelection',
node
=
CompositeNode
(
name
,
tuple
(
algs
),
combine
L
ogic
=
NodeLogic
.
LAZY_AND
,
force
O
rder
=
True
)
combine
_l
ogic
=
NodeLogic
.
LAZY_AND
,
force
_o
rder
=
True
)
if
extra_outputs
is
None
:
extra_outputs
=
[]
return
super
(
DVSelection
,
cls
).
__new__
(
cls
,
node
,
...
...
@@ -86,24 +86,24 @@ class DVSelection(namedtuple('DVSelection',
return
self
.
output_producer
is
not
None
def
dv_node
(
name
,
algs
,
logic
=
NodeLogic
.
NONLAZY_OR
,
force
O
rder
=
False
):
def
dv_node
(
name
,
algs
,
logic
=
NodeLogic
.
NONLAZY_OR
,
force
_o
rder
=
False
):
return
CompositeNode
(
name
,
combine
L
ogic
=
logic
,
children
=
algs
,
force
O
rder
=
force
O
rder
)
name
,
combine
_l
ogic
=
logic
,
children
=
algs
,
force
_o
rder
=
force
_o
rder
)
def
davinci_control_flow
(
options
,
dvsels
=
[]):
options
.
finalize
()
dec
=
CompositeNode
(
'
dv_decision
'
,
combine
L
ogic
=
NodeLogic
.
NONLAZY_OR
,
combine
_l
ogic
=
NodeLogic
.
NONLAZY_OR
,
children
=
[
dvsel
.
node
for
dvsel
in
dvsels
],
force
O
rder
=
False
)
force
_o
rder
=
False
)
return
CompositeNode
(
'
davinci
'
,
combine
L
ogic
=
NodeLogic
.
NONLAZY_OR
,
combine
_l
ogic
=
NodeLogic
.
NONLAZY_OR
,
children
=
[
dec
],
force
O
rder
=
True
)
force
_o
rder
=
True
)
def
run_davinci
(
options
,
dvsels
=
[],
public_tools
=
[]):
...
...
This diff is collapsed.
Click to expand it.
Phys/DaVinci/tests/dummy_no_davinci.py
+
1
−
1
View file @
dcc22b79
...
...
@@ -18,7 +18,7 @@ from PyConf.control_flow import CompositeNode
from
DaVinci.config
import
options
dummy
=
CompositeNode
(
"
Dummy
"
,
children
=
[],
force
O
rder
=
True
)
dummy
=
CompositeNode
(
"
Dummy
"
,
children
=
[],
force
_o
rder
=
True
)
# Basic input-like metadata required even though there is no input data
options
.
input_type
=
"
ROOT
"
...
...
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