Clone wiki

pyteach / Home

Markov Chain Monte Carlo demo

This is a simple Python demo that I use to explain MCMC and Simulated Annealing. It is based on matlab code by Nando de Freitas


Moodle parser

Moodle assigns a number to every course participant. This number is used, for example, to name the folders where the assignments are stored. But it seems that there is no direct way to get the ID number for each student.

This python script takes the HTML file with the list of participants (Participants > Show all) and creates a shell script or bat file to rename all the assignment folders. It should work in Windows, Mac OS and Linux.