def __init__(self, inputs): tz = set(map(operator.itemgetter('Properties/Timezone'), inputs)) if len(tz) != 1: raise SmapException("Datetime operator only supports a single tz") self.tz = dtutil.gettz(list(tz)[0]) self.base_operator = lambda vec: self._base_operator(vec) ParallelSimpleOperator.__init__(self, inputs)
def __init__(self, inputs, ndatathresh=0.6, invert=False): ParallelSimpleOperator.__init__(self, inputs, ndatathresh=ndatathresh, invert=invert) if ndatathresh < 0 or ndatathresh > 1: raise SmapException( "Invalid data availability threshold: must be in [0, 1]")
def __init__(self, inputs, cols=""): cols = make_colspec(cols) return ParallelSimpleOperator.__init__(self, inputs, cols=cols)
def __init__(self, inputs): # don't change uuids ParallelSimpleOperator.__init__(self, inputs)
def __init__(self, inputs, ndatathresh=0.6, invert=False): ParallelSimpleOperator.__init__(self, inputs, ndatathresh=ndatathresh, invert=invert) if ndatathresh < 0 or ndatathresh > 1: raise SmapException("Invalid data availability threshold: must be in [0, 1]")
def __init__(self, inputs, windowsz): self.name = 'snaptimes-%i' % windowsz ParallelSimpleOperator.__init__(self, inputs, bucketsz=windowsz)