1- ---
1+ ---
22title : " pyOpenSci Current Review Status"
3- format:
3+ format :
44 dashboard :
5- scrolling: true
5+ scrolling : true
66execute :
77 echo : false
8- ---
8+ ---
99
1010
1111``` {python}
1212#| echo: false
13- #|
13+ #|
1414import os
1515from pathlib import Path
1616
@@ -31,7 +31,7 @@ warnings.filterwarnings("ignore")
3131# Make tables nicer
3232pd.set_option("display.max_colwidth", None)
3333current_date = datetime.today().date()
34- today = current_date.strftime("%d %B %Y")
34+ today = current_date.strftime("%d %B %Y")
3535```
3636
3737* Last updated: ** ` {python} today ` ** *
@@ -44,12 +44,12 @@ def clean_and_order(df, DROP_COLS, order):
4444def get_status_df(df, status):
4545 return df[df["active_status"] == status].reset_index(drop=True)
4646
47- DROP_COLS = ["date_accepted", "labels", "editor", "status", "active_status"]
47+ DROP_COLS = ["date_accepted", "labels", "editor", "status", "active_status"]
4848ORDER = ["Name", "Description", "Days Open", "Date Opened","Last Comment", "Last User to Comment", "Issue", "Categories", "eic"]
4949
5050label_map = {
5151 "pre-review": [
52- "New Submission!",
52+ "New Submission!",
5353 "0/pre-review-checks"],
5454 "seeking editor": ["0/seeking-editor"],
5555 "seeking reviewers": ["2/seeking-reviewers"],
@@ -194,7 +194,7 @@ open_reviews["Last Comment"] = open_reviews["Last Comment"].dt.date
194194
195195``` {python}
196196#| echo: false
197- #|
197+ #|
198198# Determine overall review stage each item is in
199199review_status_ct = open_reviews["active_status"].value_counts().reset_index()
200200review_status_ct.rename(columns={"labels": "status"}, inplace=True)
@@ -280,15 +280,18 @@ show(new_submissions)
280280show(open_presubmissions)
281281```
282282
283- ## Row {height=4 %}
283+ ## Row {height=1 %}
284284
285285``` {python}
286286#| title: "Open Reviews Sorted by Last Comment Date"
287- print("Reviews that have been quiet for the longest period of time are at the top.")
287+ from IPython.display import Markdown, display
288288
289+ display(Markdown(
290+ "Reviews that have been quiet for the longest period of time are at the top."
291+ ))
289292open_reviews = open_reviews.sort_values("Last Comment", ascending=True)
290293
291- new_order = ["Name", "editor", "Last Comment", "Last User to Comment", "eic", "Issue", "active_status", "Description", "Date Opened"]
294+ new_order = ["Name", "editor", "Last Comment", "Last User to Comment", "eic", "Issue", "active_status", "Description", "Date Opened"]
292295
293296show(open_reviews[new_order])
294297```
0 commit comments