conditionalpath package

Submodules

conditionalpath.simple_switch module

Simple conditional path node that will travel down one destination and prune the rest

Author(s):

Carl Anderson (carl.anderson@weightwatchers.com)

class conditionalpath.simple_switch.SimpleSwitch(configuration, instance_name)

Bases: primrose.base.conditional_path_node.AbstractConditionalPath

destinations_to_prune()

List destinations that the node wishes to be pruned from the DAG

Returns

list of destinations

Return type

destinations (list)

static necessary_config(node_config)

Return a list of necessary configuration keys within the implementation

Parameters

node_config (dict) – set of parameters / attributes for the node

Returns

set of keys necessary to run implementation

run(data_object)

Run this node. Here, do nothing

Parameters

data_object (DataObject) – DataObject instance

Returns

tuple containing:

data_object (DataObject): instance of DataObject

terminate (bool): terminate the DAG?

Return type

(tuple)

Module contents