@@ -18,24 +18,24 @@ Learners can also explore some of these steps in one of the exercise sessions.
1818## Checklist
1919
2020- Start with notebook
21- - Add statistics (mean temperature)
22- - Add precipitation
2321- Generalize from January to also February and March data
2422- Abstract code into functions
2523- Move from notebook to script
2624- From functions with side-effects towards stateless functions
2725- Initialize git
2826- Add ` requirements.txt `
29- - Add test
27+ - Add test (optional)
3028- Add command line interface
3129- Show how a workflow solution could look
3230- Split into multiple files/modules
3331
3432
3533## Our initial version
3634
37- We imagine that we assemble a working script/code
38- from various internet research/ AI chat
35+ The initial version of our script for this exercise plots a series of
36+ temperatures and precipitations for ** January** as well as
37+ the ** mean temperature** averaged over the month. Suppose that we
38+ assemble a working script from various internet research/AI chat
3939recommendations and arrive at:
4040
4141:::::{tabs}
@@ -55,47 +55,6 @@ recommendations and arrive at:
5555- We test it out ** in a notebook** .
5656
5757
58- ## We add a dashed line representing the mean temperature
59-
60- This is still only the January data.
61-
62- :::::{tabs}
63- ::::{group-tab} Python
64- :::{literalinclude} code/python/initial-version-with-mean.py
65- :language: python
66- :emphasize-lines: 27-36
67- :::
68- ::::
69-
70- ::::{group-tab} R
71- Work in progress. You can
72- [ help us] ( https://github.com/coderefinery/modular-type-along/issues/40 )
73- by contributing or improving an R solution.
74- ::::
75- :::::
76-
77-
78- ## We add another plot for the precipitation
79-
80- As a first go, we achieve this by copy pasting the existing code and adjusting
81- it for the precipitation column.
82-
83- :::::{tabs}
84- ::::{group-tab} Python
85- :::{literalinclude} code/python/initial-version-with-precipitation.py
86- :language: python
87- :emphasize-lines: 49-68
88- :::
89- ::::
90-
91- ::::{group-tab} R
92- Work in progress. You can
93- [ help us] ( https://github.com/coderefinery/modular-type-along/issues/40 )
94- by contributing or improving an R solution.
95- ::::
96- :::::
97-
98-
9958## Plotting also February and March data
10059
10160- Copy-pasting very similar code 6 times would be too complicated to maintain.
0 commit comments