import argparse import openreview from openreview import invitations import datetime import os import config if __name__ == '__main__': ## Argument handling parser = argparse.ArgumentParser() parser.add_argument('--baseurl', help="base url") parser.add_argument('--username') parser.add_argument('--password') args = parser.parse_args() client = openreview.Client(baseurl=args.baseurl, username=args.username, password=args.password) conference = config.get_conference(client) conference.close_submissions() conference.open_revise_submissions(name = 'Revision', due_date = datetime.datetime(2019, 3, 9, 11, 59), public = False, additional_fields = { 'pdf': { 'description': 'Upload a PDF file that ends with .pdf', 'required': True, 'value-regex': 'upload', 'order': 99 } }, remove_fields = ['title', 'pdf'])
import openreview from openreview import tools from cvpr2019 import * ## CVPR 2019 only used OR for creating a match. They sent files that reprsent reviewers ## papers and other things pertaining to setting up the matcher. They are in ../data ## This script creates the necessary db objects for the top-level conference groups, the papers, and ## the reviewer group. It reads the papers from the o-papers.csv file and the reviewers from the ## o-reviewers.csv file. client = openreview.Client(baseurl='http://openreview.localhost', username='******', password='******') print(client) ## User groups # post the groups in the conference's path groups = openreview.tools.build_groups(CONF_ID) for group in groups: try: existing_group = client.get_group(group.id) except openreview.OpenReviewException as e: posted_group = client.post_group(group) print(posted_group.id) # Create groups for PCs, ACs, and reviewers # N.B. The groups for the conference are included in the list. The newly created group is last in the list pcs_group = openreview.tools.build_groups(PC_ID)[ -1] # last one in list is the PC group acs_group = openreview.tools.build_groups(AC_ID)[-1] # AC group is last