2 from collections
import namedtuple
4 NodeType = namedtuple(
"NodeType",
"type category input_types output_types concurrency")
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)
12 Load a JSON string, such as produced by WireCellApps::NodeDumper, into dict of NodeType keyed by type. 14 dat = json.loads(jsonstr)
24 Return a dot string representation of the description of node types. def make(type="", category=-1, input_types=None, output_types=None, concurrency=1)