Commit f5ccd1bd authored by Frank Hellmann's avatar Frank Hellmann Committed by GitHub
Browse files

Changed outline to python only and assumption that we don't touch git/shell part.

parent 665cb2a3
# swc workshop 2017 Fall # Python lesson outline
## Open questions ## Targets for the course
Frank: formulate targets (Python specific) - Structure your code (functions and modules, everything else is out of scope)
Stefan/Marvin/Peter/Martin: how(+why) to integrate shell usage in later R sessions - Think about possible errors
?: prepare time series files - document, document, document
Stefan/Marvin: if + where to introduce tidyverse - use version control
## Assumptions
## DAY 1 AM --- both 90 minute blocks
### Session AM1 (get started, know what we're doing these days) - 1 block shell
- intro - 1 block git
- lightning talks participants - 4-5 blocks of python
- course outline
### Session AM2 (basic concepts, reasons why, basis for later use cases) ## DAY 1
- shell
- git
Each shorter than spring 2017, will be picked up in later sessions ### Session AM1 Intro/Lightning talks
### Session AM2 Shell
## DAY 1 PM --- Python ### Session PM1 GIT
### Session PM1 Python Intro (basic overview) ### Session PM2 Python Intro (basic overview)
- python+anaconda+conda+jupyter+history - python+anaconda+conda+jupyter+history
- operators, data structures (tuples, lists, dicts, nparrays, panda.df, etc) - operators, data structures (tuples, lists, dicts, nparrays, panda.df, etc)
- object types (string, number, boolean, complex, etc) - object types (string, number, boolean, complex, etc)
...@@ -33,7 +32,9 @@ Each shorter than spring 2017, will be picked up in later sessions ...@@ -33,7 +32,9 @@ Each shorter than spring 2017, will be picked up in later sessions
- numpy - numpy
- read file, simple plot (or in session PM2) - read file, simple plot (or in session PM2)
### Session PM2 Python (structuring code, defensive programming, using prepared ts files) ## DAY 2 AM
### Session AM1 Python (structuring code, defensive programming, using prepared ts files)
- write function + module - write function + module
- put under version control - put under version control
- simple test (assert) - simple test (assert)
...@@ -43,33 +44,7 @@ Each shorter than spring 2017, will be picked up in later sessions ...@@ -43,33 +44,7 @@ Each shorter than spring 2017, will be picked up in later sessions
not covered: closures, argpars, numba not covered: closures, argpars, numba
### Session AM2: Time series, functions, plotting
## DAY 1 PM --- R
### Session PM1 R Intro (basic intro)
- R+Rstudio+CRAN+history
- operators, vector, df, object structures (vector,df,list,other), read file, subset df
- object class (string, number, boolean, complex, etc)
- simple plot
- read help for functions
- install.packages, library + fun vs pack::fun
### Session PM2 R (overview of code structuring)
- conditions, loops, *apply
- write function (with comments for documentation)
- put under version control
- simple test (testthat)
not covered: package with structured documentation with devtools/Roxygen/sinew (but link to https://github.com/brry/course#packs)
## DAY 2 AM --- both
### Session AM1: Time series, functions, plotting
- reading + understanding documentation of functions - reading + understanding documentation of functions
Global temperature average development 1750-2010 Global temperature average development 1750-2010
...@@ -81,20 +56,7 @@ http://berkeleyearth.lbl.gov/auto/Global/Raw_TAVG_complete.txt ...@@ -81,20 +56,7 @@ http://berkeleyearth.lbl.gov/auto/Global/Raw_TAVG_complete.txt
- plot with uncertainty band - plot with uncertainty band
- write function (exercise!) - write function (exercise!)
### Session AM2: ## DAY 2 PM
using shell:
- if possible: get list of available files in http://berkeleyearth.lbl.gov/auto/Regional/TAVG/Text/
- with wget: Get all textfiles (country temp development) starting with B (or with >3 consonants or whatever)
- apply function to several textfiles
Mix:
- Python: APIs: numpy, pandas, xarray
- R: Tidyverse?
- BUFFER (previous sessions potentially too full)
## DAY 2 PM --- both
### Session PM1: higher dimensional (spatial) data, advanced plotting + cartography, application of aquired knowledge ### Session PM1: higher dimensional (spatial) data, advanced plotting + cartography, application of aquired knowledge
gridded data Europe: gridded data Europe:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment