code: def single(self, trigs):
          
          newsnr = ranking.get_newsnr(trigs)
          rchisq = trigs['chisq'][:] / (2. * trigs['chisq_dof'][:] - 2.)
          newsnr[numpy.logical_and(newsnr < 10, rchisq > 2)] = -1
          return newsnr
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.
  
          Returns
          -------
          newsnr: numpy.ndarray
              Array of single detector values