Package mvpa :: Package misc :: Module state

[hide private]
[frames] | no frames]

# Module state

source code

Classes to control and store state information.

It was devised to provide conditional storage

Classes | [hide private]

| Collection Container of some CollectableAttributes.
| ParameterCollection Container of Parameters for a stateful object.
| SampleAttributesCollection Container for data and attributes of samples (ie data/labels/chunks/...)
| StateCollection Container of StateVariables for a stateful object.
| AttributesCollector Intended to collect and compose StateCollection for any child class of this metaclass
| ClassWithCollections Base class for objects which contain any known collection
| Harvestable Classes inherited from this class intend to collect attributes within internal processing.

Functions | [hide private]

_object_getattribute(...) x.__getattribute__('name') <==> x.name | source code

_object_setattr(...) x.__setattr__('name', value) <==> x.name = value | source code

Variables | [hide private]

| _in_ipython = `externals.exists('running ipython env')`
| _def_sep = `'`', '' [int(_in_ipython)]`
| _known_collections = `{'StateVariable':("states", StateCollecti`...``
| _col2class = `dict(_known_collections.values())` Mapping from collection name into Collection class
| _COLLECTIONS_ORDER = `['sa', 'fa', 'dsa', 'params', 'kernel_par`...``

Imports: operator, copy, TextWrapper, N, VProperty, UnknownStateError, CollectableAttribute, StateVariable, enhancedDocString, externals, debug

Variables Details | [hide private]

### _known_collections

Value:

      {'StateVariable':("states", StateCollection), 'Parameter':("params", P
      arameterCollection), 'KernelParameter':("kernel_params", ParameterColl
      ection), 'SampleAttribute':("sa", SampleAttributesCollection), 'Featur
      eAttribute':("fa", SampleAttributesCollection), 'DatasetAttribute':("d
      sa", SampleAttributesCollection),}

### _COLLECTIONS_ORDER

Value:

      ['sa', 'fa', 'dsa', 'params', 'kernel_params', 'states']