CAChemE / Python-Chemical-Engineers

Introduction to Python for Chemical Engineers (crash course with additional resources)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python for Chemical Engineers

Python crash course designed for chemical engineers and scientists with no previous knowledge. The real goal here isn’t to teach you everything about Python, but you will learn basic concepts via something you will need to do soon or later: analyze data. These informal lessons are divided into 1 hour/week and will be based on Software-Carpentry Lessons

Day #0

Day #1: NumPy

  • Explain what a library is, and what libraries are used for.
  • Load a Python library and use the things it contains.
  • Read tabular data from a file into a program.
  • Assign values to variables.
  • Select individual values and subsections from data.
  • Perform operations on arrays of data.
  • Display simple graphs.

Materials:

Day #2: Loops and lists

  • Explain what a for loop does.
  • Correctly write for loops to repeat simple calculations.
  • Trace changes to a loop variable as the loop runs.
  • Trace changes to other variables as they are updated by a for loop.
  • Explain what a list is.
  • Create and index lists of simple values.

Materials:


Day #3: Lists and how to proces multiple files

  • Explain what a list is (recap).
  • Create and index lists of simple values (recap).

Day #5: Lists and how to proces multiple files

  • Use a library function to get a list of filenames that match a simple wildcard pattern.
  • Use a for loop to process multiple files.
  • Plotting graphs (recap)

Materials:

Day #6: Analyzing Data from Multiple Files

How to repeat operations on many different files?

Day #7: Making Choices and Functions

How can my programs do different things based on data values? Creating Functions



Where to go from here?

About

Introduction to Python for Chemical Engineers (crash course with additional resources)

License:MIT License


Languages

Language:Python 100.0%