WrightTools.data.Variable.chunkwise

Variable.chunkwise(func, *args, **kwargs)

Execute a function for each chunk in the dataset.

Order of excecution is not guaranteed.

Parameters:
  • func (function) – Function to execute. First two arguments must be dataset, slices.

  • (optional) (kwargs) – Additional (unchanging) arguments passed to func.

  • (optional) – Additional (unchanging) keyword arguments passed to func.

Returns:

Dictionary of index: function output. Index is to lowest corner of each chunk.

Return type:

collections OrderedDict