Public Member Functions | |
def | __init__ (self, gr) |
def | channel (self, key) |
def | wire_chanseg (self, chan, seg) |
def | wire_wip (self, wpid, wip) |
def | wire_wid (self, wpid, wid) |
def | find (self, typecode=None, kwds) |
def | nodes_oftype (self, typecode) |
def | neighbors_oftype (self, node, typecode) |
Public Attributes | |
gr | |
Private Attributes | |
_id2ch | |
_pi2ch | |
_cs2wire | |
_wip2wire | |
_wid2wire | |
Add some indexing and lookups to meta data on cluster graph vertices
Definition at line 20 of file clusters.py.
def wirecell.img.clusters.ClusterMap.__init__ | ( | self, | |
gr | |||
) |
Definition at line 25 of file clusters.py.
def wirecell.img.clusters.ClusterMap.channel | ( | self, | |
key | |||
) |
Return a channel node by a key. If key is scalar it is a channel ident number, else assumed to be a pair of (wpid, index).
Definition at line 44 of file clusters.py.
def wirecell.img.clusters.ClusterMap.find | ( | self, | |
typecode = None , |
|||
kwds | |||
) |
Return nodes with data matching kwds. If typecode is given, only consider nodes of that type.
Definition at line 73 of file clusters.py.
def wirecell.img.clusters.ClusterMap.neighbors_oftype | ( | self, | |
node, | |||
typecode | |||
) |
Return all connected nodes of the given node and given type.
Definition at line 94 of file clusters.py.
def wirecell.img.clusters.ClusterMap.nodes_oftype | ( | self, | |
typecode | |||
) |
Return a list of nodes of given type code
Definition at line 88 of file clusters.py.
def wirecell.img.clusters.ClusterMap.wire_chanseg | ( | self, | |
chan, | |||
seg | |||
) |
Return a wire node by its channel and segment
Definition at line 54 of file clusters.py.
def wirecell.img.clusters.ClusterMap.wire_wid | ( | self, | |
wpid, | |||
wid | |||
) |
def wirecell.img.clusters.ClusterMap.wire_wip | ( | self, | |
wpid, | |||
wip | |||
) |
Return a wire node by its wire-in-plane number in the given wire-plane ID
Definition at line 60 of file clusters.py.
|
private |
Definition at line 29 of file clusters.py.
|
private |
Definition at line 27 of file clusters.py.
|
private |
Definition at line 28 of file clusters.py.
|
private |
Definition at line 31 of file clusters.py.
|
private |
Definition at line 30 of file clusters.py.
wirecell.img.clusters.ClusterMap.gr |
Definition at line 26 of file clusters.py.