arte/time_series/multi_time_series.py
def delta_times(self, *args, **kwargs):
        '''Returns a vector of delta times'''

        # Known astropy bug (numpy < 1.17): units are lost when using hstack 
        # We remove them before stacking, and add them later
        dt = np.hstack( \
              [np.repeat(x.delta_time.to('s').value, x.ensemble_size())
               for x in self._series])

        dt = dt * u.s

        index = self.get_index_of(*args, **kwargs)
        if index is not None and len(index)>0:
            dt = dt[index]

        return dt
Returns a vector of delta times
Returns a vector of delta times
Returns a vector of delta times
def delta_times(self, *args, **kwargs):
        dt = np.hstack( \
              [np.repeat(x.delta_time.to('s').value, x.ensemble_size())
               for x in self._series])
        dt = dt * u.s
        index = self.get_index_of(*args, **kwargs)
        if index is not None and len(index)>0:
            dt = dt[index]
        return dt
def delta_times ( self , * args , ** kwargs ) : dt = np . hstack ( [ np . repeat ( x . delta_time . to ( 's' ) . value , x . ensemble_size ( ) ) for x in self . _series ] ) dt = dt * u . s index = self . get_index_of ( * args , ** kwargs ) if index is not None and len ( index ) > 0 : dt = dt [ index ] return dt
Returns a vector of delta times
Returns a vector of delta times
'''Returns a vector of delta times''' # Known astropy bug (numpy < 1.17): units are lost when using hstack  # We remove them before stacking, and add them later
self