Borg-class (python-singleton) to hold the different 'dataset'
Definition at line 483 of file App.py.
◆ __init__()
def python.App.DataSetMgr.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
data, |
|
|
|
label = None |
|
) |
| |
Definition at line 539 of file App.py.
539 def __init__(self, name, data, label=None):
541 object.__init__(self)
552 self.label = self.name
◆ __new__()
def python.App.DataSetMgr.__new__ |
( |
|
cls, |
|
|
* |
args, |
|
|
** |
kw |
|
) |
| |
Definition at line 494 of file App.py.
494 def __new__(cls, *args, **kw):
496 kw[
'name' ] = args[0]
498 kw[
'data' ] = args[1]
500 kw[
'label'] = args[2]
503 if kw[
'name']
in cls.instances.
keys():
504 return cls.instances[kw[
'name']]
507 obj = object.__new__(cls)
510 for k
in cls.__slots__.
keys():
511 setattr(obj, k, cls.__slots__[k])
514 cls.instances[kw[
'name']] = obj
◆ colorIter()
def python.App.DataSetMgr.colorIter |
( |
| ) |
|
|
static |
Definition at line 533 of file App.py.
536 color = iter(
list(pylab.cm.colors.cnames.keys())[1:])
◆ labels()
def python.App.DataSetMgr.labels |
( |
|
keys = None | ) |
|
|
static |
Definition at line 520 of file App.py.
520 def labels( keys = None ):
522 keys =
list(DataSetMgr.instances.keys())
524 return [DataSetMgr.instances[k].label
for k
in keys]
◆ names()
def python.App.DataSetMgr.names |
( |
| ) |
|
|
static |
Definition at line 527 of file App.py.
528 keys =
list(DataSetMgr.instances.keys())
◆ __slots__
dictionary python.App.DataSetMgr.__slots__ |
|
staticprivate |
Initial value:= {
'name' : "",
'data' : None,
'label': None,
'bins' : None,
}
Definition at line 487 of file App.py.
◆ bins
python.App.DataSetMgr.bins |
◆ data
python.App.DataSetMgr.data |
◆ instances
dictionary python.App.DataSetMgr.instances = { } |
|
static |
◆ label
python.App.DataSetMgr.label |
◆ name
python.App.DataSetMgr.name |
The documentation for this class was generated from the following file: