pipeline/evaluate.py
def iterfound(fdir=None):
    """Iterate through files in `fdir`, treating each as a file of found
    communities and reading them with `read_communities`. A generator is returned that
    yields each found community list in alphabetic order by file name.

    :return: generator which yields tuples of (name, communities), where
        communities is a list of lists of strings.
    """
    fdir = os.path.join(os.getcwd(), 'found') if fdir is None else fdir
    foundfiles = sorted([os.path.join(fdir, f) for f in os.listdir(fdir)])
    logging.info(
        'discovered %d found community files to evaluate' % len(foundfiles))
    return (read_communities(f) for f in foundfiles)
Iterate through files in `fdir`, treating each as a file of found
    communities and reading them with `read_communities`. A generator is returned that
    yields each found community list in alphabetic order by file name.

    :return: generator which yields tuples of (name, communities), where
        communities is a list of lists of strings.
    
Iterate through files in `fdir`, treating each as a file of found
communities and reading them with `read_communities`. A generator is returned that
yields each found community list in alphabetic order by file name.
Iterate through files in ` fdir ` treating each as a file of found communities and reading them with ` read_communities ` . A generator is returned that yields each found community list in alphabetic order by file name .
def iterfound(fdir=None):
    fdir = os.path.join(os.getcwd(), 'found') if fdir is None else fdir
    foundfiles = sorted([os.path.join(fdir, f) for f in os.listdir(fdir)])
    logging.info(
        'discovered %d found community files to evaluate' % len(foundfiles))
    return (read_communities(f) for f in foundfiles)
def iterfound ( fdir = None ) : fdir = os . path . join ( os . getcwd ( ) , 'found' ) if fdir is None else fdir foundfiles = sorted ( [ os . path . join ( fdir , f ) for f in os . listdir ( fdir ) ] ) logging . info ( 'discovered %d found community files to evaluate' % len ( foundfiles ) ) return ( read_communities ( f ) for f in foundfiles )
Iterate through files in `fdir`, treating each as a file of found
communities and reading them with `read_communities`.
Iterate through files in ` fdir ` treating each as a file of found communities and reading them with ` read_communities ` .
"""Iterate through files in `fdir`, treating each as a file of found
    communities and reading them with `read_communities`. A generator is returned that
    yields each found community list in alphabetic order by file name.

    :return: generator which yields tuples of (name, communities), where
        communities is a list of lists of strings.
    """
generator which yields tuples of (name, communities), where
communities is a list of lists of strings.
generator which yields tuples of ( name communities ) where communities is a list of lists of strings .
fdir