parameters: (self, data, width_s)
return_statement: return data
docstring: apply moving average filter of width width_s seconds
docstring_summary: apply moving average filter of width width_s seconds
docstring_tokens: apply moving average filter of width width_s seconds
function: def FilterArray(self, data, width_s):
          '''apply moving average filter of width width_s seconds'''
          nseconds = data['time'][-1] - data['time'][0]
          nsamples = len(data['time'])
          window = int(nsamples / nseconds) * width_s
          if window > 1:
              for axis in AXEST:
                  data[axis] = self.moving_average(data[axis], window)
          return data
function_tokens: def FilterArray ( self , data , width_s ) : nseconds = data [ 'time' ] [ - 1 ] - data [ 'time' ] [ 0 ] nsamples = len ( data [ 'time' ] ) window = int ( nsamples / nseconds ) * width_s if window > 1 : for axis in AXEST : data [ axis ] = self . moving_average ( data [ axis ] , window ) return data