code: def window_from_array(array):
      
      from ...utils.lal import (find_typed_function)
  
      dtype = array.dtype
  
      # create sequence
      seq = find_typed_function(dtype, 'Create', 'Sequence')(array.size)
      seq.data = array
  
      # create window from sequence
      return find_typed_function(dtype, 'Create', 'WindowFromSequence')(seq)
docs: Convert a `numpy.ndarray` into a LAL `Window` object