code: def select_sources(cat_table, cuts):
      
      nsrc = len(cat_table)
      full_mask = np.ones((nsrc), bool)
      for cut in cuts:
          if cut == 'mask_extended':
              full_mask *= mask_extended(cat_table)
          elif cut == 'select_extended':
              full_mask *= select_extended(cat_table)
          else:
              full_mask *= make_mask(cat_table, cut)
  
      lout = [src_name.strip() for src_name in cat_table['Source_Name'][full_mask]]
      return lout
docs: Select only rows passing a set of cuts from catalog table