Extract Paper Publication info from NIPS Export

May 4th 2014 Neil D. Lawrence

This notebook loads in exports from the NIPS system which contain the number of papers published by each user in the system since a given year.

In [1]:
import cmtutils
db = cmtutils.reviewerdb('reviewers.db')
The history saving thread hit an unexpected error (DatabaseError('database disk image is malformed',)).History will not be written to the database.

Extract the number of papers published by each user at NIPS since 2007.

In [ ]:
db.add_field('PapersSince2007') # add the field if it doesn't already exist
ds = cmtutils.old_csv_read('NIPS-ReviwerCandidates-1-since-2007-2014-05-04.csv')
for reviewer in ds.items:
    id = db.match_reviewer(reviewer, match_firstname=False, match_lastname=False, primary_email=False)
    if id:
        db.update_field(id, 'PapersSince2007', reviewer['NumPapers'])

This is information from Chris Hiestand on how many papers a reviewer has published since 2012.

In [ ]:
db.add_field('PapersSince2012') # add the field if it doesn't already exist
ds = cmtutils.old_csv_read('NIPS-ReviwerCandidates-1-since-2012-2014-05-04.csv')
for reviewer in ds.reviewers:
    id = db.match_reviewer(reviewer, match_firstname=False, match_lastname=False, primary_email=False)
    if id:
        db.update_field(id, 'PapersSince2012', reviewer['NumPapers'])