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=[]) source code
 
__repr__(self) 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__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

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 
Overrides: Level.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: Level.__repr__

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).