From 31ab445a268cac61e263b568cdc4f7315f855b66 Mon Sep 17 00:00:00 2001 From: Melisa Bok Date: Tue, 27 Feb 2024 16:02:12 -0500 Subject: [PATCH] Journal: parametrize the number of reviewers (#2030) * parametrize the number of reviewers * increase package version --------- Co-authored-by: celestemartinez <32438984+celestemartinez@users.noreply.github.com> Co-authored-by: Celeste Martinez --- openreview/journal/invitation.py | 10 ++++++++-- .../process/action_editor_edge_reminder_process.py | 2 +- setup.py | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/openreview/journal/invitation.py b/openreview/journal/invitation.py index 2056a4969..f650f08e1 100644 --- a/openreview/journal/invitation.py +++ b/openreview/journal/invitation.py @@ -24,7 +24,7 @@ def __init__(self, journal): self.author_edge_reminder_process = { 'dates': ["#{4/duedate} + " + str(day), "#{4/duedate} + " + str(week)], - 'script': self.get_process_content('process/author_edge_reminder_process.py') + 'script': self.get_super_dateprocess_content('author_edge_reminder_script', self.journal.get_meta_invitation_id(), { 0: '1', 1: 'one week' }) } self.author_reminder_process = { @@ -54,7 +54,7 @@ def __init__(self, journal): self.ae_edge_reminder_process = { 'dates': ["#{4/duedate} + " + str(day), "#{4/duedate} + " + str(week), "#{4/duedate} + " + str(one_month)], - 'script': self.get_process_content('process/action_editor_edge_reminder_process.py') + 'script': self.get_super_dateprocess_content('ae_edge_reminder_script', self.journal.get_meta_invitation_id(), { 0: '1', 1: 'one week', 2: 'one month' }) } def set_invitations(self, assignment_delay): @@ -244,6 +244,12 @@ def set_meta_invitation(self): }, 'author_reminder_script': { 'value': self.get_process_content('process/author_reminder_process.py') + }, + 'ae_edge_reminder_script': { + 'value': self.get_process_content('process/action_editor_edge_reminder_process.py') + }, + 'author_edge_reminder_script': { + 'value': self.get_process_content('process/author_edge_reminder_process.py') } }, edit=True diff --git a/openreview/journal/process/action_editor_edge_reminder_process.py b/openreview/journal/process/action_editor_edge_reminder_process.py index 6a5636832..ec975f1cb 100644 --- a/openreview/journal/process/action_editor_edge_reminder_process.py +++ b/openreview/journal/process/action_editor_edge_reminder_process.py @@ -9,7 +9,7 @@ def process(client, invitation): edges = client.get_edges(invitation=journal.get_reviewer_assignment_id(), head=submission.id) - if len(edges) >= 3: + if len(edges) >= journal.get_number_of_reviewers(): return if date_index == 0 or date_index == 1: diff --git a/setup.py b/setup.py index b2c8bf10e..b190791b5 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='openreview-py', - version='1.36.0', + version='1.36.1', description='OpenReview API Python client library', url='https://github.com/openreview/openreview-py',