docs: def set_array(longarray, shortarray):
      """
      :param longarray: a numpy array of floats of length L >= l
      :param shortarray: a numpy array of floats of length l
  
      Fill `longarray` with the values of `shortarray`, starting from the left.
      If `shortarry` is shorter than `longarray`, then the remaining elements on
      the right are filled with `numpy.nan` values.
      """
      longarray[:len(shortarray)] = shortarray
      longarray[len(shortarray):] = numpy.nan