combine_fold_results.py
def write_results_file(file, *columns, **kwargs):
    '''Write columns of data to a file, with optional footer comment'''
    footer = kwargs.get('footer', '')
    with open(file, 'w') as f:
        for row in zip(*columns):
            f.write(' '.join(map(str, row)) + '\n')
        if footer:
            f.write('# %s' % footer)
Write columns of data to a file, with optional footer comment
Write columns of data to a file, with optional footer comment
Write columns of data to a file with optional footer comment
def write_results_file(file, *columns, **kwargs):
    footer = kwargs.get('footer', '')
    with open(file, 'w') as f:
        for row in zip(*columns):
            f.write(' '.join(map(str, row)) + '\n')
        if footer:
            f.write('# %s' % footer)
def write_results_file ( file , * columns , ** kwargs ) : footer = kwargs . get ( 'footer' , '' ) with open ( file , 'w' ) as f : for row in zip ( * columns ) : f . write ( ' ' . join ( map ( str , row ) ) + '\n' ) if footer : f . write ( '# %s' % footer )
Write columns of data to a file, with optional footer comment
Write columns of data to a file with optional footer comment
'''Write columns of data to a file, with optional footer comment'''
file