code: def single(self, trigs):
          
          chisq_newsnr = ranking.get_newsnr(trigs)
          rautochisq = trigs['cont_chisq'][:] / trigs['cont_chisq_dof'][:]
          autochisq_newsnr = ranking.newsnr(trigs['snr'][:], rautochisq)
          return numpy.array(numpy.minimum(chisq_newsnr, autochisq_newsnr,
                             dtype=numpy.float32), ndmin=1, copy=False)
docs: Calculate the single detector statistic.
  
          Parameters
          ----------
          trigs: dict of numpy.ndarrays, h5py group (or similar dict-like object)
              Dictionary-like object holding single detector trigger information.
              'snr', 'cont_chisq', 'cont_chisq_dof', 'chisq_dof' and 'chisq'
              are required keys for this statistic.
  
          Returns
          -------
          stat: numpy.ndarray
              The array of single detector values