Functions | Variables
wirecell.dfp.nodetype Namespace Reference

Functions

def make (type="", category=-1, input_types=None, output_types=None, concurrency=1)
 
def loads (jsonstr)
 
def to_dots (desc)
 

Variables

 NodeType = namedtuple("NodeType","type category input_types output_types concurrency")
 

Function Documentation

def wirecell.dfp.nodetype.loads (   jsonstr)
Load a JSON string, such as produced by WireCellApps::NodeDumper, into dict of NodeType keyed by type.

Definition at line 10 of file nodetype.py.

10 def loads(jsonstr):
11  '''
12  Load a JSON string, such as produced by WireCellApps::NodeDumper, into dict of NodeType keyed by type.
13  '''
14  dat = json.loads(jsonstr)
15  ret = dict()
16  for d in dat:
17  nt = make(**d)
18  ret[nt.type] = nt
19  return ret
20 
21 
def make(type="", category=-1, input_types=None, output_types=None, concurrency=1)
Definition: nodetype.py:5
def loads(jsonstr)
Definition: nodetype.py:10
def wirecell.dfp.nodetype.make (   type = "",
  category = -1,
  input_types = None,
  output_types = None,
  concurrency = 1 
)
Return a representation of information about a concrete
WireCell::INode class with some defaults.    

Definition at line 5 of file nodetype.py.

5 def make(type="", category=-1, input_types=None, output_types=None, concurrency=1):
6  '''Return a representation of information about a concrete
7  WireCell::INode class with some defaults. '''
8  return NodeType(type, category, input_types or list(), output_types or list(), concurrency)
9 
def make(type="", category=-1, input_types=None, output_types=None, concurrency=1)
Definition: nodetype.py:5
def wirecell.dfp.nodetype.to_dots (   desc)
Return a dot string representation of the description of node types.

Definition at line 22 of file nodetype.py.

22 def to_dots(desc):
23  '''
24  Return a dot string representation of the description of node types.
25  '''
26 
27 
def to_dots(desc)
Definition: nodetype.py:22

Variable Documentation

wirecell.dfp.nodetype.NodeType = namedtuple("NodeType","type category input_types output_types concurrency")

Definition at line 4 of file nodetype.py.