Skip to content

Commit b1c2959

Browse files
authored
Merge pull request ese-msc#46 from ese-msc/release
release
2 parents e522cb6 + 70267ae commit b1c2959

File tree

12 files changed

+5021
-2042
lines changed

12 files changed

+5021
-2042
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2022, Imperial College London
1+
Copyright 2023, Imperial College London
22

33
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
44

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ $ jupyter notebook &
4949

5050
## Testing
5151

52-
After (almost) each exercise, there are two cells containing some code. In those cells, we test your solution using two different testing packages:
52+
After (almost) each exercise, there are two cells containing some code. In those cells, we test your solution using two different methods:
5353

5454
1. **PyBryt** analyses your solution and provides you feedback on what is correct in your implementation, as well as what might be wrong. Please read PyBryt's feedback carefully and address the `ERROR` messages by modifying your solution.
55-
2. **okpy** validates your final solution and provides you a mark for it.
55+
2. **assert** statements validate your final solution
5656

5757
It is important to follow the instructions for each exercise exactly and do not change the names of variables, functions, or classes so that tests can analyse your code. Besides, please do not change the content of any of the testing cells.
5858

59-
Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **okpy** confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, **okpy** looks at the final result of your code and if **okpy** is happy with your result, your code is correct and you do not have to address **PyBryt**'s error messages (if any).
59+
Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **assert** statement confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, assert statements check the final result of your code and if they do not raise an error, your code is correct and you do not have to address **PyBryt**'s error messages (if any).
6060

6161
## Support
6262

environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ channels:
88

99
dependencies:
1010
- pip
11-
- python=3.9 # Python 3.10 expected to work as well, but we are being conservative here.
11+
- python=3.10
1212
- pip:
1313
- jupyterlab
1414
- numpy
1515
- matplotlib
1616
- pendulum
1717
- okpy
18-
- pybryt>=0.7.0
18+
- pybryt>=0.7.0
19+
- pytest

index.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"\n",
2323
"## Testing\n",
2424
"\n",
25-
"After (almost) each exercise, there are two cells containing some code. In those cells, we test your solution using two different testing packages:\n",
25+
"After (almost) each exercise, there are two cells containing some code. In those cells, we test your solution using two different methods:\n",
2626
"\n",
2727
"1. **PyBryt** analyses your solution and provides you feedback on what is correct in your implementation, as well as what might be wrong. Please read PyBryt's feedback carefully and address the `ERROR` messages by modifying your solution.\n",
28-
"2. **okpy** validates your final solution and provides you a mark for it.\n",
28+
"2. **assert** statements validate your final solution\n",
2929
"\n",
3030
"It is important to follow the instructions for each exercise exactly and do not change the names of variables, functions, or classes so that tests can analyse your code. Besides, please do not change the content of any of the testing cells.\n",
3131
"\n",
32-
"Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **okpy** confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, **okpy** looks at the final result of your code and if **okpy** is happy with your result, your code is correct and you do not have to address **PyBryt**'s error messages (if any).\n",
32+
"Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **assert** statement confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, assert statements check the final result of your code and if they do not raise an error, your code is correct and you do not have to address **PyBryt**'s error messages (if any).\n",
3333
"\n",
3434
"## Support\n",
3535
"\n",

lecture1/lecture.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import pybryt
22
import pathlib
3-
from client.api.notebook import Notebook
4-
from client.api import assignment
5-
6-
# OkPy settings
7-
args = assignment.Settings(server="clewolffautook21.eastus.cloudapp.azure.com/okpy")
8-
ok = Notebook("./lecture.ok", args)
93

104

115
def pybryt_reference(lecture, exercise):

0 commit comments

Comments
 (0)