Skip to content
Snippets Groups Projects
Commit e7120a3d authored by tuhe's avatar tuhe
Browse files

Updates for presentation

parent 3500606a
No related branches found
No related tags found
No related merge requests found
Showing
with 1926 additions and 2 deletions
import os
from unitgrade_private.pipelines.dtulearn import process_by_zip_file
if __name__ == "__main__":
process_by_zip_file("intro_python_exam.zip", instructor_grade_script=os.path.dirname(__file__) + "/../instructor/intro_python/exam_complete_grade.py")
{"profiledFunctions": [{"file": "/usr/local/lib/python3.10/dist-packages/coursebox/core/info.py", "lineNo": 18, "functionName": "xlsx_to_dicts", "profiledLines": []}, {"file": "/usr/local/lib/python3.10/dist-packages/coursebox/core/info.py", "lineNo": 248, "functionName": "class_information", "profiledLines": []}], "unit": 1e-06}
\ No newline at end of file
File added
File added
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
RUN apt-get -y update
RUN apt-get -y install git
WORKDIR /home
# Remember to include requirements.
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# Not required.
# RUN pip install git+https://git@gitlab.compute.dtu.dk/tuhe/unitgrade.git
COPY . .
ADD . /home
numpy
tqdm
jinja2
tabulate
pyfiglet
colorama
importnb
unitgrade # Perhaps just this and not the other.
requests # For unitgrade, may remove later.
...@@ -25,7 +25,7 @@ class Fraction: ...@@ -25,7 +25,7 @@ class Fraction:
def from_string(s): def from_string(s):
""" Convert the string s to a Fraction(a, b) object. """ """ Convert the string s to a Fraction(a, b) object. """
# TODO: 10 lines missing. # TODO: 11 lines missing.
raise NotImplementedError("Compute and return a Fraction(a,b) object corresponding to s.") raise NotImplementedError("Compute and return a Fraction(a,b) object corresponding to s.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment