code: def valid_flows_array(catchment):
      
      return np.array([record.flow for record in catchment.amax_records if record.flag == 0])
docs: Return array of valid flows (i.e. excluding rejected years etc)
  
      :param catchment: gauged catchment with amax_records set
      :type catchment: :class:`floodestimation.entities.Catchment`
      :return: 1D array of flow values
      :rtype: :class:`numpy.ndarray`