All public logs
Jump to navigation
Jump to search
Combined display of all available logs of 22118. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 14:20, 30 April 2026 WikiSysop talk contribs created page Changing existing code base (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Runtime evauation |Next: Last words |} == Required course material for the lesson == GitHub: [https://github.com/agormp Professor Anders Gorm Pedersen's repositories.] Used in teaching this week.<br> GitHub: [https://github.com/genenetwork/ Gene network.] A much larger and thus more complicated/confusing repo.<br> GitHub: [https://github.com/bioinform Th...")
- 18:07, 19 March 2026 WikiSysop talk contribs created page Example code - Inheritance issues (Created page with "The challenges in inheritance can not be demonstrated well in a powerpoint. Thus, I made this page with examples. You can copy the code in the section and add it together and run it. First I create a slightly bigger CatClass. <pre> class CatClass: ### Class variables genus = "Felis" species = "Catus" acts = {'scratch': "purrs", 'scare': "jumps high in the air", 'feed': "is very excited" } ### Instatiation def __init__(sel...")
- 16:15, 6 March 2026 WikiSysop talk contribs created page Intermediate unit test (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Beginning unit test |Next: Runtime evaluation |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_09-Testing.ppt Testing]<br> Online: [https://docs.pytest.org/ pytest documentation]<br> Resource: Example code - Unit test<br> Resource: Unit test - start of reverse polish notation clas...")
- 14:54, 6 March 2026 WikiSysop talk contribs created page Unit test - start of reverse polish notation class (Created page with "These are the two files, I made in class for unit test demo purposes. My original class in the file: ReversePolishCalc.py <pre> class ReversePolishCalc: def __init__(self): self.stack = list() def _checkstack(self, count): if len(self.stack) < count: raise IndexError("Stack does not contain enough elements to perform operaation") def push(self, vector): if isinstance(vector, (int, float, str)): vector = [...")
- 14:31, 6 March 2026 WikiSysop talk contribs created page Intermediate classes (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Beginning classes |Next: Beginning Unittest |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_07-Classes.ppt Classes]<br> Resource: Example code - Classes<br> == Subjects covered == Classes<br> Object Oriented Programming == Exercises to be handed in == The exercises will be about...")
- 12:12, 21 February 2026 WikiSysop talk contribs created page Example code - parsing command line options (Created page with "This is one selfmade way of dealing with command line parameters for your program. <pre> #!/usr/bin/env python3 # This program demonstrates a way to get arguments and options from command line import sys # You should use more appropriately named variable names than me. # I just don't know what your options are. # In my example two options are just present or not, but the third requires a number to follow. # By initalising the option to None, you can later tell that you...")
- 14:43, 17 February 2026 WikiSysop talk contribs created page Collaborative git (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Solo git |Next: Collaborative git |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_03-Git.ppt Git]<br> Optional - do you want to know more<br> Online: [https://coderefinery.github.io/git-intro/ Coderefinery's introduction to git] This is one of many git resources on the net.<br> Online:...")
- 17:21, 11 February 2026 WikiSysop talk contribs created page Solo git (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate unix |Next: Collaborative git |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_03-Git.ppt Git]<br> <!-- Resource: Example code - File Reading<br> --> == Subjects covered == * GitHub - short * Git - concepts == Exercises to be handed in == '''In exercises 2-9 the job i...")
- 10:54, 27 January 2026 WikiSysop talk contribs created page Last words (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Changing existing code base |Next: Programme |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_13-LastWords.ppt Last words]<br> <!-- Resource: Example code - File Reading<br> --> == Subjects covered == Course summery<br> Standard libraries<br> Third party libraries<br> Optimization<...")
- 10:50, 27 January 2026 WikiSysop talk contribs created page Runtime evaluation (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate unit test |Next: Changing existing code base |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/Python10-Runtime.pptx Runtime evaluation of algorithms] Old ppt, not so important<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=41edc89b-61a5-475d-84d0-af2701271b5d Run...")
- 10:41, 27 January 2026 WikiSysop talk contribs created page Example code - Unit test (Created page with "I decided to make some unit tests for my prime number generator, I used as an example last week, see Example code - Classes I make two files - one file containing the class ''PrimeGenerator.py'' and one file containing the tests, ''test_PrimeGenerator.py''. The files are supposed to be in the same folder. I will not show the code from last week in ''PrimeGenerator.py'', if you want to see the code, click the above link. <p> This is my unit test file. I want to test...")
- 10:36, 27 January 2026 WikiSysop talk contribs created page Beginning unit test (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate classes |Next: Intermediate unit test |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_09-Testing.ppt Testing]<br> Online: [https://docs.pytest.org/ pytest documentation]<br> Resource: Example code - Unit test<br> Resource: Unit test - start of reverse polish notation...")
- 10:32, 27 January 2026 WikiSysop talk contribs created page Example code - Classes (Created page with "You know how I often use primes in my examples, so I decided to make a prime number generator class as an example.<br> It is able to generate a range of primes, somewhat similar to the way '''range()''' works.<br> Wanting to be smart, I decided to store the primes I have already computed in a class variable, so I do not have to compute them again at least while the program runs.<br> I am doing a running incremental calculation of primes, storing them as I find them, and...")
- 10:32, 27 January 2026 WikiSysop talk contribs created page Beginning classes (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Comprehension, generators, iteration |Next: Intermediate classes |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_07-Classes.ppt Classes]<br> Resource: Example code - Classes<br> == Subjects covered == Classes<br> Object Oriented Programming == Exercises to be handed in == The exe...")
- 10:29, 27 January 2026 WikiSysop talk contribs created page Example code - Misc (Created page with "__NOTOC__ == Files used in example == Our favorite data file: ''ex1.dat'' == Closest to zero == There are a lot of numbers in this file. Which number is the closest to zero and where is it (row/column) ?<br> This is more complicated because there are both positive and negative numbers in the file.<br> In order to demonstrate some of the new functions/methods, I pull the entire file into memory. This problem could be solved by reading line-by-line and not keeping all the...")