xdufacool/organize_bib.py
def gen_metadata(args):
    """Generate metadata and store them in a YAML file with given arguments."""
    with open(args.bibfile) as bibfile:
        bib_db = BibTexParser(common_strings=True).parse_file(bibfile)
        entries = sorted(list(bib_db.entries),
                         key=lambda x: x['year'], reverse=True)
        list([update_file(entry) for entry in entries])
        annotations = [entry_to_annotation(entry, args.PI) for entry in entries]
        stream = open(args.metadata, 'w')
        yaml.dump(annotations, stream, width=192, default_flow_style=False)
        stream.close()
Generate metadata and store them in a YAML file with given arguments.
Generate metadata and store them in a YAML file with given arguments.
Generate metadata and store them in a YAML file with given arguments .
def gen_metadata(args):
    with open(args.bibfile) as bibfile:
        bib_db = BibTexParser(common_strings=True).parse_file(bibfile)
        entries = sorted(list(bib_db.entries),
                         key=lambda x: x['year'], reverse=True)
        list([update_file(entry) for entry in entries])
        annotations = [entry_to_annotation(entry, args.PI) for entry in entries]
        stream = open(args.metadata, 'w')
        yaml.dump(annotations, stream, width=192, default_flow_style=False)
        stream.close()
def gen_metadata ( args ) : with open ( args . bibfile ) as bibfile : bib_db = BibTexParser ( common_strings = True ) . parse_file ( bibfile ) entries = sorted ( list ( bib_db . entries ) , key = lambda x : x [ 'year' ] , reverse = True ) list ( [ update_file ( entry ) for entry in entries ] ) annotations = [ entry_to_annotation ( entry , args . PI ) for entry in entries ] stream = open ( args . metadata , 'w' ) yaml . dump ( annotations , stream , width = 192 , default_flow_style = False ) stream . close ( )
Generate metadata and store them in a YAML file with given arguments.
Generate metadata and store them in a YAML file with given arguments .
"""Generate metadata and store them in a YAML file with given arguments."""
args