Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Gradescope Autograder works with new exam export system. #332

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b0120f3
Added initial code to use the new renderer
ThaumicMekanism Mar 17, 2021
94631d2
Updated the ag to work with the new better html pages
ThaumicMekanism Mar 17, 2021
634608b
Question page mapping now uses sim jobs for selecting number of threads
ThaumicMekanism Mar 17, 2021
0fc1082
Added some more minor printing fixes and extracted out the page numbe…
ThaumicMekanism Mar 17, 2021
062c863
A lot more rewriting of the ag to make it more robust to gs errors
ThaumicMekanism Mar 18, 2021
d96d48a
Added multiple attempts for the rubric grading though that may not be…
ThaumicMekanism Mar 18, 2021
6ede5ed
Set number of attempts to be very low
ThaumicMekanism Mar 18, 2021
b3f2e0e
Added code which will put boxes on the relative correct locations
ThaumicMekanism Mar 18, 2021
398fdf1
Made the sid and name field more accurate
ThaumicMekanism Mar 18, 2021
0397ae8
Updated required version
ThaumicMekanism Mar 18, 2021
148c9a7
Merge branch 'master' into gag-fixes
ThaumicMekanism Mar 18, 2021
5a7ca38
Bumped up the fullGSapi req
ThaumicMekanism Mar 18, 2021
142aa46
Merge branch 'master' into gag-fixes
ThaumicMekanism Mar 18, 2021
b0b7f50
Merge branch 'master' into gag-fixes
ThaumicMekanism Mar 18, 2021
da11cf6
Merge branch 'master' into gag-fixes
rahularya50 Mar 20, 2021
b9dde23
Added catch for handling failed uploads
ThaumicMekanism Mar 20, 2021
e8a73f5
Added some more helpful messages for mismatched outlines
ThaumicMekanism Mar 21, 2021
2178997
Merge branch 'master' into gag-fixes
ThaumicMekanism Mar 21, 2021
1c2db12
Made otuline accept s as well
ThaumicMekanism Mar 21, 2021
3f577d7
Bugfix
ThaumicMekanism Mar 22, 2021
1ce88fb
Another bugfix
ThaumicMekanism Mar 22, 2021
c436126
Merge branch 'master' into gag-fixes
ThaumicMekanism Mar 22, 2021
207c4aa
Fixed error handler to print more useful errors
ThaumicMekanism Mar 22, 2021
5deaa75
Added Jerry's grouper function creator to the api.
ThaumicMekanism Mar 22, 2021
187730d
Applied formatting
ThaumicMekanism Mar 22, 2021
f3e6a4d
Added a flag to only group a question
ThaumicMekanism Mar 22, 2021
9dbda1f
Merge branch 'master' into gag-fixes
ThaumicMekanism Apr 13, 2021
120d502
Moved question mapping to a new file
ThaumicMekanism Apr 13, 2021
29d3039
Merge branch 'master' into gag-fixes
ThaumicMekanism Apr 19, 2021
5bfa4db
Merge branch 'master' into gag-fixes
ThaumicMekanism May 10, 2021
0d32495
Reformatted
ThaumicMekanism May 11, 2021
87c0200
fix: examtool deploy exception handling
rahularya50 May 12, 2021
7688cb7
feat: support custom shortlinks on code via rpc
rahularya50 May 12, 2021
7264c14
fix: examtool MCQ derandomization bug
rahularya50 May 12, 2021
5e484a3
fix: examtool roster validation
rahularya50 May 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 4 additions & 33 deletions examtool/examtool/api/download.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import json

from tqdm import tqdm
from pathlib import Path
from multiprocessing import Pool
from math import floor, ceil

from examtool.api.database import get_exam, get_roster, get_submissions
from examtool.api.extract_questions import extract_questions
Expand Down Expand Up @@ -51,36 +55,3 @@ def download(exam, emails_to_download: [str] = None, debug: bool = False):

return json.loads(exam_json), template_questions, email_to_data_map, total


def get_question_to_page_mapping(
template_questions,
exam,
out,
name_question,
sid_question,
dispatch=None,
):
questions = []
pages = []
for q in tqdm(
template_questions,
desc="Getting question page numbers",
unit="Question",
dynamic_ncols=True,
):
questions.append(q)
pdf = write_exam(
None,
{},
exam,
questions,
questions,
name_question,
sid_question,
dispatch,
)
pages.append(pdf.page_no())
# for i, q in enumerate(questions):
# print(f"[{i}] pg: {pages[i]} - {q['id']}")
# import ipdb; ipdb.set_trace()
return pages
Loading