lama/common.py
def write_file_list(root_names_dict, outpath):
    """
    Given a dict of root folder->[list of basenames] create a list that can be read by other componabt of the pipleine
    Parameters
    ----------
    root_names_dict
    """
    with open(outpath) as fh:
        for root, basenames in root_names_dict.items():
            fh.write({'dir:{}\n'.format(root)})
            for base in basenames:
                fh.write('{}\n'.format(base))

    Given a dict of root folder->[list of basenames] create a list that can be read by other componabt of the pipleine
    Parameters
    ----------
    root_names_dict
    
Given a dict of root folder->[list of basenames] create a list that can be read by other componabt of the pipleine
Parameters


Given a dict of root folder - > [ list of basenames ] create a list that can be read by other componabt of the pipleine Parameters
def write_file_list(root_names_dict, outpath):
    with open(outpath) as fh:
        for root, basenames in root_names_dict.items():
            fh.write({'dir:{}\n'.format(root)})
            for base in basenames:
                fh.write('{}\n'.format(base))
def write_file_list ( root_names_dict , outpath ) : with open ( outpath ) as fh : for root , basenames in root_names_dict . items ( ) : fh . write ( { 'dir:{}\n' . format ( root ) } ) for base in basenames : fh . write ( '{}\n' . format ( base ) )
Given a dict of root folder->[list of basenames] create a list that can be read by other componabt of the pipleine
Parameters
Given a dict of root folder - > [ list of basenames ] create a list that can be read by other componabt of the pipleine Parameters
"""
    Given a dict of root folder->[list of basenames] create a list that can be read by other componabt of the pipleine
    Parameters
    ----------
    root_names_dict
    """
root_names_dict
outpath