Esempio n. 1
0
 def __init__(self, gap_size):
   if gap_size <= 0:
     raise ValueError('The size parameter must be strictly positive.')
   self.gap_size = Duration.of(gap_size)
Esempio n. 2
0
 def __init__(self, gap_size):
     if gap_size <= 0:
         raise ValueError('The size parameter must be strictly positive.')
     self.gap_size = Duration.of(gap_size)
Esempio n. 3
0
 def __init__(self, size, period, offset=0):
   if size <= 0:
     raise ValueError('The size parameter must be strictly positive.')
   self.size = Duration.of(size)
   self.period = Duration.of(period)
   self.offset = Timestamp.of(offset) % size
Esempio n. 4
0
 def __init__(self, size, period, offset=0):
     if size <= 0:
         raise ValueError('The size parameter must be strictly positive.')
     self.size = Duration.of(size)
     self.period = Duration.of(period)
     self.offset = Timestamp.of(offset) % size