Skip to content
Snippets Groups Projects
Commit eb83ae52 authored by RABijl's avatar RABijl
Browse files

applies style changes mentioned in mr

parent 79c757f0
No related branches found
No related tags found
1 merge request!28combine precise positioning with pregrading
Pipeline #18420 passed
...@@ -68,8 +68,8 @@ def get(exam_id, problem_id, submission_id, full_page=False): ...@@ -68,8 +68,8 @@ def get(exam_id, problem_id, submission_id, full_page=False):
fb = list(map(lambda x: x.id, solution.feedback)) fb = list(map(lambda x: x.id, solution.feedback))
for option in problem.mc_options: for option in problem.mc_options:
if option.feedback_id in fb: if option.feedback_id in fb:
x = int((option.x) / 72 * dpi) x = int(option.x / 72 * dpi)
y = int((option.y) / 72 * dpi) y = int(option.y / 72 * dpi)
box_length = int(BOX_SIZE / 72 * dpi) box_length = int(BOX_SIZE / 72 * dpi)
x1 = x + box_length x1 = x + box_length
y1 = y + box_length y1 = y + box_length
......
...@@ -60,7 +60,7 @@ def fix_corner_markers(corner_keypoints, shape): ...@@ -60,7 +60,7 @@ def fix_corner_markers(corner_keypoints, shape):
return corner_keypoints return corner_keypoints
if len(corner_keypoints) < 3: if len(corner_keypoints) < 3:
raise RuntimeError("Fewer then 3 corner markers found while trying to fix corners") raise RuntimeError("Fewer than 3 corner markers found while trying to fix corners")
x_sep = shape[1] / 2 x_sep = shape[1] / 2
y_sep = shape[0] / 2 y_sep = shape[0] / 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment