datamuxer.ColSpec

class datamuxer.ColSpec[source]

Named-tuple sub-class to validate the column specifications for the DataMuxer

Parameters:
  • name (hashable) –
  • ndim (uint) – Dimensionality of the data stored in the column
  • shape (tuple or None) – like ndarray.shape, where 0 or None are scalar
  • upsample ({None, ‘linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic’, ‘ffill’, ‘bfill’}) – None means that each time bin must have at least one value. The names refer to kinds of scipy.interpolator. See documentation link below.
  • downsample (None or a function) – None if the data cannot be downsampled (reduced). Otherwise, any callable that reduces multiple data points (of whatever dimension) to a single data point.

References

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

count(...)
index((value, [start, ...) Raises ValueError if the value is not present.

Attributes

downsample Alias for field number 4
downsampling_methods
name Alias for field number 0
ndim Alias for field number 1
shape Alias for field number 2
upsample Alias for field number 3
upsampling_methods