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

Docker build and download updates

parent edfbb0c2
Branches
No related tags found
No related merge requests found
Showing
with 16 additions and 1088 deletions
include src/unitgrade_private/autolab/lab_template/src/README
include src/unitgrade_private/autolab/lab_template/src/driver_python.py
include src/unitgrade_private/autolab/lab_template/src/Makefile
include src/unitgrade_private/autolab/lab_template/src/driver.sh
include src/unitgrade_private/autolab/lab_template/Makefile
include src/unitgrade_private/autolab/lab_template/autograde-Makefile
include src/unitgrade_private/autolab/lab_template/hello.yml
include src/unitgrade_private/autolab/lab_template/hello.rb
......@@ -2,7 +2,6 @@ numpy
tqdm
jinja2
tabulate
compress_pickle
pyfiglet
colorama
unitgrade-devel>=0.1.23
\ No newline at end of file
unitgrade-devel>=0.1.24 # Required to run automatic evaluation (load tokens etc.)
\ No newline at end of file
def reverse_list(mylist):
"""
Given a list 'mylist' returns a list consisting of the same elements in reverse order. E.g.
reverse_list([1,2,3]) should return [3,2,1] (as a list).
"""
# TODO: 1 lines missing.
raise NotImplementedError("Implement function body")
def add(a,b):
""" Given two numbers `a` and `b` this function should simply return their sum:
> add(a,b) = a+b """
# TODO: 1 lines missing.
raise NotImplementedError("Implement function body")
if __name__ == "__main__":
# Example usage:
print(f"Your result of 2 + 2 = {add(2,2)}")
print(f"Reversing a small list", reverse_list([2,3,5,7]))
from unitgrade import UTestCase, Report
from unitgrade.utils import hide
from unitgrade import evaluate_report_student
import cs103
class AutomaticPass(UTestCase):
def test_automatic_pass(self):
self.assertEqual(2, 2) # For simplicity, this test will always pass
class Report3(Report):
title = "CS 101 Report 3"
questions = [(AutomaticPass, 10)] # Include a single question for 10 credits.
pack_imports = [cs103]
if __name__ == "__main__":
evaluate_report_student(Report3())
This diff is collapsed.
"""
Example student code. This file is automatically generated from the files in the instructor-directory
"""
def reverse_list(mylist):
"""
Given a list 'mylist' returns a list consisting of the same elements in reverse order. E.g.
reverse_list([1,2,3]) should return [3,2,1] (as a list).
"""
# TODO: 1 lines missing.
raise NotImplementedError("Implement function body")
def add(a,b):
""" Given two numbers `a` and `b` this function should simply return their sum:
> add(a,b) = a+b """
# TODO: 1 lines missing.
raise NotImplementedError("Implement function body")
if __name__ == "__main__":
# Problem 1: Write a function which add two numbers
print(f"Your result of 2 + 2 = {add(2,2)}")
print(f"Reversing a small list", reverse_list([2,3,5,7]))
"""
Example student code. This file is automatically generated from the files in the instructor-directory
"""
from src.unitgrade.framework import UTestCase, Report
from src.unitgrade import evaluate_report_student
class Week1(UTestCase):
""" The first question for week 1. """
def test_add(self):
from cs103.homework1 import add
self.assertEqualC(add(2,2))
self.assertEqualC(add(-100, 5))
class AutomaticPass(UTestCase):
def test_student_passed(self):
self.assertEqual(2,2)
import cs103
class Report3(Report):
title = "CS 101 Report 3"
questions = [(Week1, 20), (AutomaticPass, 10)] # Include a single question for 10 credits.
pack_imports = [cs103]
if __name__ == "__main__":
# from unitgrade_private.hidden_gather_upload import gather_upload_to_campusnet
# gather_upload_to_campusnet(Report3())
evaluate_report_student(Report3())
This diff is collapsed.
This diff is collapsed.
No preview for this file type
This diff is collapsed.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -13,8 +13,9 @@ def bacteriaGrowth(n0, alpha, K, N):
:param N:
:return:
"""
# TODO: 7 lines missing.
raise NotImplementedError("Implement function bod")
# TODO: 6 lines missing.
raise NotImplementedError("Implement function body")
return t+1
def clusterAnalysis(reflectance):
reflectance = np.asarray(reflectance)
......
This diff is collapsed.
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment