Skip to content

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

License

Notifications You must be signed in to change notification settings

CAChemE/Python-Chemical-Engineers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages