IUGB · CSC 2301
Principles of Computer Programming
Python for mining and petroleum engineers: variables, loops, functions, files and first calculations on drill-hole data. One notebook a week, with automatic checks.
BSc · Mining and Petroleum Engineering42 h2 notebooksCourse taught in English
Overview
By the end of the course you can
- Write clear Python programs that read, check and summarise engineering data
- Use variables, loops, conditions, functions and data structures
- Work with files, NumPy arrays and plots
- Test your own code and explain your results
Prerequisites
No programming experience needed. A phone or a computer with a web browser is enough (Google Colab).
Sessions
One notebook per session. Open it in Colab, or download it with its data.
- W1
Python basics with drill-hole data
3 hMining
- W2
Control flow on a well log
3 hPetroleum
- W3
Functions: reusable engineering formulas
3 hNotebook coming soon
- W4
Strings and files: cleaning a lab report
3 hNotebook coming soon
- W5
Lists, tuples and dictionaries: organising data by hole and well
3 hNotebook coming soon
- W6
Errors, debugging and testing
3 hNotebook coming soon
- W7
Review and mini-project
3 hNotebook coming soon
- W8
NumPy arrays: calculations on a whole log
3 hNotebook coming soon
- W9
Plotting with matplotlib: logs and sections
3 hNotebook coming soon
- W10
Data tables with pandas
3 hNotebook coming soon
- W11
Modules and packages: writing your own
3 hNotebook coming soon
- W12
Algorithms: searching, sorting and interpolation
3 hNotebook coming soon
- W13
Simulation and random numbers: uncertainty in reserves
3 hNotebook coming soon
- W14
Final project and presentation
3 hNotebook coming soon
