Package mvpa :: Package misc :: Module support :: Class Harvester
[hide private]
[frames] | no frames]

Class Harvester

source code


World domination helper: do whatever it is asked and accumulate results

XXX Thinks about:
Instance Methods [hide private]
 
__init__(self, source, calls, simplify_results=True)
Initialize
source code
 
__call__(self, *args, **kwargs) source code

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

Instance Variables [hide private]
  __source
Generator which feeds the harvester
  __calls
Calls which gets called with each generated source
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, calls, simplify_results=True)
(Constructor)

source code 
Initialize
Parameters:
  • source - Generator which produce food for the calls.
  • calls (sequence of HarvesterCall instances) - Calls which are processed in the loop. All calls are processed in order of apperance in the sequence.
  • simplify_results, bool - Remove unecessary overhead in results if possible (nested lists and dictionaries).
Overrides: object.__init__