tvaLib
Public Member Functions | List of all members
lib.scene.Clusters Class Reference

Declare analysis objects. More...

Inheritance diagram for lib.scene.Clusters:
lib.scene.SQLlists

Public Member Functions

def __init__ (self, nonOptionalArgs, kwargs)
 
def getNamedClusterByidx (self, idx)
 
def getNamedClusterByName (self, name)
 
def getNamedClusters (self)
 
- Public Member Functions inherited from lib.scene.SQLlists
def __init__ (self, class_prototype, sql_prototype, nonOptionalArgs, dir='', filename='scene.sqlite', kwargs)
 
def new (self, sqlFields={}, classFields)
 
def update (self)
 
def exportToCode (self, moduleName='tvaMetaData')
 
def objectFromDict (idx=0, kwargs)
 
def getAlchemyObject (self, idx)
 

Additional Inherited Members

- Public Attributes inherited from lib.scene.SQLlists
 nonOptionalArgs
 
 prototype
 
 class_prototype
 
 session
 

Detailed Description

Declare analysis objects.

Definition at line 573 of file scene.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.scene.Clusters.__init__ (   self,
  nonOptionalArgs,
  kwargs 
)

Definition at line 574 of file scene.py.

574  def __init__(self, *nonOptionalArgs, **kwargs):
575  SQLlists.__init__(self, Cluster, tvaMetaData.Cluster, nonOptionalArgs, dir=nonOptionalArgs[0].dir, filename=nonOptionalArgs[0].dbn, **kwargs)
576  return
577 

Member Function Documentation

◆ getNamedClusterByidx()

def lib.scene.Clusters.getNamedClusterByidx (   self,
  idx 
)

Definition at line 578 of file scene.py.

578  def getNamedClusterByidx(self, idx): return [x for x in self if x.idx==idx][0]

◆ getNamedClusterByName()

def lib.scene.Clusters.getNamedClusterByName (   self,
  name 
)

Definition at line 579 of file scene.py.

579  def getNamedClusterByName(self, name): return self.getNamedClusters()[name]
580 

◆ getNamedClusters()

def lib.scene.Clusters.getNamedClusters (   self)

Definition at line 581 of file scene.py.

581  def getNamedClusters(self):
582  namedClusters = dict([(x.name, x) for x in self])
583  for x in self: namedClusters[x.name].append(x)
584  return namedClusters
585 
586 

The documentation for this class was generated from the following file: