Skip to content
Snippets Groups Projects
Commit dcc22b79 authored by Eduardo Rodrigues's avatar Eduardo Rodrigues
Browse files

Adapt CombineNode arguments to snake_case convention

parent 05e72b6e
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!507Adapt PyConf API to snake_case convention
Pipeline #2357523 passed
...@@ -51,8 +51,8 @@ class DVSelection(namedtuple('DVSelection', ...@@ -51,8 +51,8 @@ class DVSelection(namedtuple('DVSelection',
node = CompositeNode( node = CompositeNode(
name, name,
tuple(algs), tuple(algs),
combineLogic=NodeLogic.LAZY_AND, combine_logic=NodeLogic.LAZY_AND,
forceOrder=True) force_order=True)
if extra_outputs is None: if extra_outputs is None:
extra_outputs = [] extra_outputs = []
return super(DVSelection, cls).__new__(cls, node, return super(DVSelection, cls).__new__(cls, node,
...@@ -86,24 +86,24 @@ class DVSelection(namedtuple('DVSelection', ...@@ -86,24 +86,24 @@ class DVSelection(namedtuple('DVSelection',
return self.output_producer is not None return self.output_producer is not None
def dv_node(name, algs, logic=NodeLogic.NONLAZY_OR, forceOrder=False): def dv_node(name, algs, logic=NodeLogic.NONLAZY_OR, force_order=False):
return CompositeNode( return CompositeNode(
name, combineLogic=logic, children=algs, forceOrder=forceOrder) name, combine_logic=logic, children=algs, force_order=force_order)
def davinci_control_flow(options, dvsels=[]): def davinci_control_flow(options, dvsels=[]):
options.finalize() options.finalize()
dec = CompositeNode( dec = CompositeNode(
'dv_decision', 'dv_decision',
combineLogic=NodeLogic.NONLAZY_OR, combine_logic=NodeLogic.NONLAZY_OR,
children=[dvsel.node for dvsel in dvsels], children=[dvsel.node for dvsel in dvsels],
forceOrder=False) force_order=False)
return CompositeNode( return CompositeNode(
'davinci', 'davinci',
combineLogic=NodeLogic.NONLAZY_OR, combine_logic=NodeLogic.NONLAZY_OR,
children=[dec], children=[dec],
forceOrder=True) force_order=True)
def run_davinci(options, dvsels=[], public_tools=[]): def run_davinci(options, dvsels=[], public_tools=[]):
......
...@@ -18,7 +18,7 @@ from PyConf.control_flow import CompositeNode ...@@ -18,7 +18,7 @@ from PyConf.control_flow import CompositeNode
from DaVinci.config import options from DaVinci.config import options
dummy = CompositeNode("Dummy", children=[], forceOrder=True) dummy = CompositeNode("Dummy", children=[], force_order=True)
# Basic input-like metadata required even though there is no input data # Basic input-like metadata required even though there is no input data
options.input_type = "ROOT" options.input_type = "ROOT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment