Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python for science and engineering

lucydot
April 07, 2017

Python for science and engineering

Slides to accompany the ipython notebook "Python for science and engineering".
Forms part of the Yonsei University Graduate Class in "Energy Materials: Design, Discovery and Data".

lucydot

April 07, 2017
Tweet

More Decks by lucydot

Other Decks in Science

Transcript

  1. Yonsei University Graduate Class Energy Materials: Design, Discovery and Data

    Python for science and engineering Lucy Whalley PhD student Imperial College London / Centre for Doctoral Training in Photovoltaics [email protected]
  2. About Me 2007 - 2011: MSci degree (physics) from University

    of Birmingham 2011 - 2012: PGCE (mathematics) from Birmingham City University 2015 - current: PhD student at Imperial College London and CDT in Photovoltaics
  3. What do I use Python for? (not python!) (for the

    future) •  Clear, transparent data pipeline •  Reduces errors •  Re-usable code •  Easy to make changes
  4. Next steps Use the terminal as a calculator Search online

    Use built-in help Keep a Jupyter lab book Start a (mini?) project Tutorials
  5. Mini project: carbon_calculator.py Define function Correct indentation Docstring to describe

    what the module does Import modules Assign variable Nested for loops Conditional `If` statement Write to file Math functions Print statements String formatting