Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swc-bb
swc-lessons
python-notebooks
Commits
f5ccd1bd
Commit
f5ccd1bd
authored
Sep 20, 2017
by
Frank Hellmann
Committed by
GitHub
Sep 20, 2017
Browse files
Changed outline to python only and assumption that we don't touch git/shell part.
parent
665cb2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
outline.md
View file @
f5ccd1bd
#
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 session
s
-
Think about possible error
s
?: 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 session
s
### Session AM1 Intro/Lightning talk
s
### Session AM2 Shell
##
DAY 1 PM --- Python
##
# Session PM1 GIT
### Session PM
1
Python Intro (basic overview)
### Session PM
2
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:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment