code: def _isophote_list_to_table(isophote_list):
      
  
      properties = OrderedDict()
      properties['sma'] = 'sma'
      properties['intens'] = 'intens'
      properties['int_err'] = 'intens_err'
      properties['eps'] = 'ellipticity'
      properties['ellip_err'] = 'ellipticity_err'
      properties['pa'] = 'pa'
      properties['pa_err'] = 'pa_err'
      properties['grad_r_error'] = 'grad_rerr'
      properties['ndata'] = 'ndata'
      properties['nflag'] = 'flag'
      properties['niter'] = 'niter'
      properties['stop_code'] = 'stop_code'
  
      isotable = QTable()
  
      for k, v in properties.items():
          isotable[v] = np.array([getattr(iso, k) for iso in isophote_list])
  
          if k in ('pa', 'pa_err'):
              isotable[v] = isotable[v] * 180. / np.pi * u.deg
  
      return isotable
docs: Convert an `~photutils.isophote.IsophoteList` instance to
      a `~astropy.table.QTable`.
  
      Parameters
      ----------
      isophote_list : list of `~photutils.isophote.Isophote` or a `~photutils.isophote.IsophoteList` instance
          A list of isophotes.
  
      Returns
      -------
      result : `~astropy.table.QTable`
          An astropy QTable with the main isophote parameters.