@staticmethod
def make_entry(index, psgen):
    """Returns the entry associated to the generator psgen with the given index."""
    max_ecut = None
    max_atan_logder_l1err = None
    max_psexc_abserr = None
    herm_err = None
    if psgen.results is None and psgen.status == psgen.S_OK:
        psgen.check_status()
    if psgen.results is not None:
        max_ecut = psgen.results.max_ecut
        max_atan_logder_l1err = psgen.results.max_atan_logder_l1err
        max_psexc_abserr = psgen.results.max_psexc_abserr
        herm_err = psgen.results.herm_err
    return ['%d\t\t' % index, '%s' % psgen.status, '%s' % max_ecut, '%s' %
        max_atan_logder_l1err, '%s' % max_psexc_abserr, '%s' % herm_err, 
        '%s' % len(psgen.warnings)]
