Package mvpa :: Package atlases :: Module base :: Class LabelsLevel
[hide private]
[frames] | no frames]

Class LabelsLevel

source code


Level of labels.

XXX extend

Instance Methods [hide private]
 
__init__(self, description, index=None, labels=[])
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
index(self) source code
 
labels(self) source code
 
__getitem__(self, index) source code
 
find(self, target, unique=True)
Return labels descr of which matches the string
source code

Inherited from Level: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
generateFromXML(Elevel, levelIndex=[0])
Simple factory of levels
source code
Class Variables [hide private]

Inherited from Level: levelType

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, description, index=None, labels=[])
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

generateFromXML(Elevel, levelIndex=[0])
Static Method

source code 
Simple factory of levels
Overrides: Level.generateFromXML
(inherited documentation)

index(self)

source code 
Decorators:
  • @property

labels(self)

source code 
Decorators:
  • @property

find(self, target, unique=True)

source code 
Return labels descr of which matches the string
Parameters:
  • target (str or re._pattern_type) - Substring in abbreviation to be searched for, or compiled regular expression to be searched or matched if anchored.
  • unique (bool) - If True, raise exception if none or more than 1 was found. Return just a single item if found (not list).