Package kenozooid :: Module util

Module util

source code

Kenozooid utility funtions.
Functions
 
min2str(t)
Convert decimal minutes (i.e. 38.84) into MM:SS string (i.e. 38:50).
source code
 
pipe(data, *gens)
Pipe data through list of geneators.
source code
Variables
  FMT_DIVETIME = '%Y-%m-%d %H:%M'
  nformat = _Formatter().format
  nit = lambda it:
  cumsum = accumulate(operator.add)
Function Details

pipe(data, *gens)

source code 
Pipe data through list of geneators.
Parameters:
  • data - Data to pipe through the generators.
  • gens - List of generators to process the data.