Laurent KouadioHome
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.

  1. W1

    Python basics with drill-hole data

    3 hMining

  2. W2

    Control flow on a well log

    3 hPetroleum

  3. W3

    Functions: reusable engineering formulas

    3 hNotebook coming soon

  4. W4

    Strings and files: cleaning a lab report

    3 hNotebook coming soon

  5. W5

    Lists, tuples and dictionaries: organising data by hole and well

    3 hNotebook coming soon

  6. W6

    Errors, debugging and testing

    3 hNotebook coming soon

  7. W7

    Review and mini-project

    3 hNotebook coming soon

  8. W8

    NumPy arrays: calculations on a whole log

    3 hNotebook coming soon

  9. W9

    Plotting with matplotlib: logs and sections

    3 hNotebook coming soon

  10. W10

    Data tables with pandas

    3 hNotebook coming soon

  11. W11

    Modules and packages: writing your own

    3 hNotebook coming soon

  12. W12

    Algorithms: searching, sorting and interpolation

    3 hNotebook coming soon

  13. W13

    Simulation and random numbers: uncertainty in reserves

    3 hNotebook coming soon

  14. W14

    Final project and presentation

    3 hNotebook coming soon