Пример #1
0
 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)
Пример #2
0
 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]")
Пример #3
0
 def __init__(self, inputs, cols=""):
     cols = make_colspec(cols)
     return ParallelSimpleOperator.__init__(self, inputs, cols=cols)
Пример #4
0
 def __init__(self, inputs):
     # don't change uuids
     ParallelSimpleOperator.__init__(self, inputs)
Пример #5
0
 def __init__(self, inputs, cols=""):
     cols = make_colspec(cols)
     return ParallelSimpleOperator.__init__(self, inputs, cols=cols)
Пример #6
0
 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]")
Пример #7
0
 def __init__(self, inputs):
     # don't change uuids
     ParallelSimpleOperator.__init__(self, inputs)
Пример #8
0
 def __init__(self, inputs, windowsz):
     self.name = 'snaptimes-%i' % windowsz
     ParallelSimpleOperator.__init__(self, inputs, bucketsz=windowsz)