Three sessions to normalise the Python skills for master students.
Tutorials made by Yu Sun with sample assignment from Sirisha.
Recordings available on Canvas: PHYS5012 -> Recorded Lectures.
-
5th March 2024 - Python basics
- Set up Colab environment for running code (20 minutes)
- Upload and download files (5 minutes)
- Some basic concepts: paths, shell vs Python commands (10 minutes)
- Install packages (5 minutes)
- Connect Google Drive to the save progress (5 minutes)
- Walk through of a sample MRI assignment (15 minutes)
- Release of execise (Q1) and reading materials: general Python syntax
-
12th March 2024 - Numpy for scientific computation
- Q&A and discussion for Q1 (20 minutes)
- Numpy quick overview (30 minutes)
- Walk through of a sample MRI assignment (continuned) (10 minutes)
- Release of excercise (Q2) and reading materials: Numpy
-
19th March 2024 - Matplotlib for figure plotting
- Q&A and discuss for Q2 (20 minutes)
- Matplotlib quick overview (30 minutes)
- Walk through of a sample MRI assignment (continuned) (10 minutes)
- Release of exercise (Q3) and reading materials: Matplotlib
Sample assignment: link
Each week has two files: