Skip to content

Commit

Permalink
Correction of tutorials: spelling and bugs (#582)
Browse files Browse the repository at this point in the history
* Correction of tutorials: spelling and bugs

1) First correction: Change in cell 14 of tutorial 1_main_climada.jpynb
An extra comma "," was making an array behave like a tuple.

1) Second correction: Change in cell 2 of climada_engine_Forecast.jpynb
Spelling mistake: there was two times in a row the word "with" and two
times ##

* undo replotting

Co-authored-by: Nicolas Colombi <ncolombi@student.ethz.ch>
Co-authored-by: emanuel-schmid <schmide@ethz.ch>
  • Loading branch information
3 people authored Nov 16, 2022
1 parent 76cd4e2 commit cd6dcf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial/1_main_climada.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
"source": [
"from climada.entity import DiscRates\n",
"\n",
"years=np.arange(1950, 2101),\n",
"years=np.arange(1950, 2101)\n",
"rates=np.ones(years.size) * 0.02\n",
"disc = DiscRates(years=years, rates=rates)\n",
"disc.check()\n",
Expand Down Expand Up @@ -1261,7 +1261,7 @@
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "Python 3.8.13 ('climada_320')",
"display_name": "Python 3.8.13 ('climada_env')",
"language": "python",
"name": "python3"
},
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorial/climada_engine_Forecast.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"source": [
"#generate hazard\n",
"hazard, haz_model, run_datetime, event_date = generate_WS_forecast_hazard()\n",
"# #generate hazard with with forecasts from past dates (works only if the files have already been downloaded)\n",
"# generate hazard with forecasts from past dates (works only if the files have already been downloaded)\n",
"# hazard, haz_model, run_datetime, event_date = generate_WS_forecast_hazard(\n",
"# run_datetime=datetime(2022,5,17),\n",
"# event_date=datetime(2022,5,19)) "
Expand Down

0 comments on commit cd6dcf8

Please sign in to comment.