-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
202 changed files
with
7,042 additions
and
592 deletions.
There are no files selected for viewing
Binary file modified
BIN
-38.8 KB
(66%)
_downloads/02455a388cef9885eb9ffbbbd37a47a9/python_basics-strings.pdf
Binary file not shown.
Binary file modified
BIN
+27 Bytes
(100%)
_downloads/02ea9566cd25492254b8ecd69e2dab51/plotting-goals_workflow.pdf
Binary file not shown.
Binary file modified
BIN
+46 KB
(160%)
_downloads/03b64cf485748e55c9f602b44d3cfba0/projects-writing_simple_pytasks.pdf
Binary file not shown.
Binary file modified
BIN
+42.7 KB
(160%)
_downloads/048af2856cd5004e582b3719a6ed54f5/software_engineering-idea_of_testing.pdf
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
_downloads/06a094bd3c5d699718160812bd1fade7/projects-directory_structure.pdf
Binary file not shown.
Binary file modified
BIN
-93.6 KB
(89%)
_downloads/06b4f966cd9a770240a7476ea1c3985d/background-os_history.pdf
Binary file not shown.
Binary file modified
BIN
-9 Bytes
(100%)
_downloads/07628fb03f37043c159a28dd5e8acac2/software_engineering-pure_functions.pdf
Binary file not shown.
Binary file modified
BIN
-15 Bytes
(100%)
_downloads/0cc420ff7ff8312cf025170258d15f74/plotting-tweak_px.pdf
Binary file not shown.
Binary file modified
BIN
-3.86 KB
(96%)
_downloads/0f33f4cb8a10352106b283c781a3e269/python_basics-functions_basics.pdf
Binary file not shown.
Binary file modified
BIN
-6 Bytes
(100%)
_downloads/13c484b9f525026d99cf31d30670ee68/python_basics-pathlib.pdf
Binary file not shown.
Binary file modified
BIN
-11 Bytes
(100%)
_downloads/15ad80c05b0e5675f14eed62f3766214/projects-reproducibility.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_downloads/22393dd56dc1451a88a1a245f8716811/pandas-what_is_pandas.pdf
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
_downloads/296f9d7b6a2c1a89f30b04766d949f47/background-file_systems.pdf
Binary file not shown.
Binary file modified
BIN
+8.41 KB
(110%)
_downloads/2c55eab50a3eba258876c70376ddaf46/software_engineering-reuse_test_code.pdf
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
_downloads/2e495dd57d3d5b8c1e03386ab3c34ba0/tools-windows_navigation.pdf
Binary file not shown.
Binary file modified
BIN
+150 KB
(280%)
...ads/30e1b642a2ee90a95beffbebdcc7e8f1/python_installation_execution-executing_py_shell.pdf
Binary file not shown.
Binary file modified
BIN
-16.6 KB
(78%)
_downloads/329adf43100cc51769b6c3102f726419/tools-why_shells_today.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_downloads/3793951a17990cd6feb257c3fe80858f/projects-setup.pdf
Binary file not shown.
Binary file modified
BIN
+15.9 KB
(110%)
_downloads/3ac9bbbdb4a26f6f1742605a5f43f70d/pandas-loading_and_saving.pdf
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
_downloads/3ed1f0100c7aa24a3649081fa05a962d/scientific_computing-indexing.pdf
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
_downloads/42992eab203923aca81c879a5399449f/projects-pytask_docs.pdf
Binary file not shown.
Binary file modified
BIN
-53.3 KB
(89%)
...ea7970daf3fd8a7fe6c3f544af8d5/python_installation_execution-executing_notebook_vscode.pdf
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
_downloads/4c66bfbe3a35405995054adb622e4700/plotting-what_to_plot.pdf
Binary file not shown.
Binary file modified
BIN
+88.1 KB
(150%)
_downloads/4fc2a5a7ae966a3e4a028dd490024ced/projects-reusing_pytask_functions.pdf
Binary file not shown.
Binary file modified
BIN
-30.3 KB
(69%)
_downloads/5140db96ccdfb8ce7cbb85ed14c1d041/projects-paths.pdf
Binary file not shown.
Binary file modified
BIN
-44.7 KB
(65%)
_downloads/5758640a3af1b3d13e57bc59ebea0bbb/python_basics-importing.pdf
Binary file not shown.
Binary file modified
BIN
-147 KB
(69%)
...ds/58df93097a2a6ca43c53b1ad421c796e/python_installation_execution-executing_py_vscode.pdf
Binary file not shown.
Binary file modified
BIN
-51.7 KB
(87%)
_downloads/5a88042a5b93818d82a05790e5d0e9b0/software_engineering-what_does_pytest_do.pdf
Binary file not shown.
Binary file modified
BIN
-17.9 KB
(87%)
_downloads/5d004c6cbe8a015a4696d018810dcdd7/software_engineering-writing_simple_pytests.pdf
Binary file not shown.
Binary file modified
BIN
-9 Bytes
(100%)
_downloads/61d4c36d3448dfe36e736b034ea41645/pandas-functional.pdf
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
_downloads/625f517e924ac315b36bcb80e89f8e0b/python_basics-comprehensions.pdf
Binary file not shown.
Binary file modified
BIN
+43.7 KB
(180%)
_downloads/632263fe7c244d00de46295397df23b0/pandas-rules.pdf
Binary file not shown.
Binary file modified
BIN
-33 Bytes
(100%)
_downloads/6af7b7987d7b9db774a5e6a322d671a5/git-introduction.pdf
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
_downloads/6c9fa5aa9026570c8af4b5a275fcd3b3/python_basics-lists_tuples_sets.pdf
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
_downloads/7074395418673116e11fdceabd3f837c/texts-markdown_applications.pdf
Binary file not shown.
Binary file modified
BIN
+26 Bytes
(100%)
_downloads/71ec56bb1ce9431f6f20f7422348253a/background-graphs.pdf
Binary file not shown.
Binary file added
BIN
+46 KB
_downloads/789d55a1b19869498e1dca83b05c6fd6/software_engineering-error_handling_intro.pdf
Binary file not shown.
Binary file modified
BIN
+29 Bytes
(100%)
_downloads/797a90c46f861a8856f79d051a71ab66/pandas-merging.pdf
Binary file not shown.
Binary file modified
BIN
+97.6 KB
(180%)
_downloads/7c891eb5cbacd6d67972dc6ab799bfdf/pandas-inspecting_and_summarizing.pdf
Binary file not shown.
Binary file modified
BIN
+15 Bytes
(100%)
_downloads/7cbbde004a3f97b43452042711b06cdd/plotting-graph_objects.pdf
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
_downloads/7ceda313aad825479ec338239f6bf7b4/software_engineering-what_and_how_to_test.pdf
Binary file not shown.
Binary file added
BIN
+99.6 KB
_downloads/8030c72d58786632a25c3567a4d1b5d4/software_engineering-which_errors_to_handle.pdf
Binary file not shown.
Binary file modified
BIN
-31.3 KB
(91%)
_downloads/83be5425c95a0fd95b0bf3cc42d1e254/git-pre_commits.pdf
Binary file not shown.
Binary file modified
BIN
-109 KB
(51%)
_downloads/87f911a13823128cf33089e3b16a1f6d/projects-writing_pytasks_multiple_outputs.pdf
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
_downloads/8a24a95cdb3635530ee80fa72d9e598e/python_basics-functions_principles.pdf
Binary file not shown.
Binary file added
BIN
+73.9 KB
_downloads/8b6124abfc8e78494c7a9e9ec813e343/software_engineering-raising_errors.pdf
Binary file not shown.
Binary file modified
BIN
+29 Bytes
(100%)
_downloads/8c5c2ab8274b50eb811e7e2fa2464bb9/python_basics-assignment_and_scalar_types.pdf
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
_downloads/8d1c67ebba4b5b88ead060edaa601c5e/tools-unix_navigation.pdf
Binary file not shown.
Binary file modified
BIN
+39.8 KB
(130%)
_downloads/910cbca26824838bbd0d41e3e23aa708/python_basics-tracebacks.pdf
Binary file not shown.
Binary file modified
BIN
-40.9 KB
(61%)
_downloads/9bbb01d4edb43a1a5e74132d956c2c92/python_basics-dicts.pdf
Binary file not shown.
Binary file modified
BIN
+191 KB
(220%)
...aa53c6a9367318583e7ba9e06a07/python_installation_execution-executing_notebook_browser.pdf
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
_downloads/a509e4a67e3f9e44cbda610116a1f08c/plotting-why_plotly_prerequisites.pdf
Binary file not shown.
Binary file modified
BIN
-4.24 KB
(97%)
_downloads/a5cd74a273b58b2a37c0fb61b0829873/pandas-datatypes.pdf
Binary file not shown.
Binary file modified
BIN
+97.5 KB
(140%)
_downloads/a8b235424fc9457bc5ffeef13bceb310/projects-what_does_pytask_do.pdf
Binary file not shown.
Binary file modified
BIN
+41.4 KB
(130%)
_downloads/acd681a25c563b33ae9783852ff1c297/pandas-creating_variables.pdf
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
_downloads/b7c5e64255df13f3fefbcbfa19a016a8/scientific_computing-what_is_numpy.pdf
Binary file not shown.
Binary file modified
BIN
+33.5 KB
(160%)
_downloads/b91e063a3f0a95945309232042458e89/software_engineering-style_guides.pdf
Binary file not shown.
Binary file modified
BIN
+55.1 KB
(180%)
_downloads/bd9a2c40c03c40c252c2c72482d5a9b7/texts-markup_languages.pdf
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
_downloads/c023cc969b9cb26a8a8d08a863dae075/plotting-quick_plots.pdf
Binary file not shown.
Binary file modified
BIN
+33.5 KB
(130%)
_downloads/cb575c6779071de1750436c36c0f21ab/pandas-selection.pdf
Binary file not shown.
Binary file modified
BIN
-19 Bytes
(100%)
_downloads/d23b6c04dfb5250081c1cce2563ac857/texts-markdown_syntax.pdf
Binary file not shown.
Binary file modified
BIN
-55.8 KB
(73%)
_downloads/d6de29a86718ccdca654d77a04d7803d/software_engineering-pytest_error_handling.pdf
Binary file not shown.
Binary file modified
BIN
+21 Bytes
(100%)
_downloads/da85e84f301287521c06ec8bfc78669c/python_basics-if_conditions.pdf
Binary file not shown.
Binary file modified
BIN
-31.2 KB
(74%)
_downloads/db875671b2c61c4fcbdba6f89f5ad948/pandas-columns_and_indices.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_downloads/df139a84f35436f8339569845315f423/scientific_computing-randomness.pdf
Binary file not shown.
Binary file modified
BIN
+24.4 KB
(130%)
_downloads/e2e871c7829344ef74b246b61d6fe732/scientific_computing-creating_arrays.pdf
Binary file not shown.
Binary file modified
BIN
-31.1 KB
(67%)
...ads/e3ed7701b9468b7f946b91043e5f0199/scientific_computing-calculations_between_arrays.pdf
Binary file not shown.
Binary file modified
BIN
-38 KB
(69%)
_downloads/e447272ecd78c885703278ae78499cac/python_basics-for_loops.pdf
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
_downloads/e459ceaf2fecdc2d90a41479eb777989/projects-what_are_templates.pdf
Binary file not shown.
Binary file modified
BIN
-7.62 KB
(96%)
...loads/e4bba0bad5b8b364b84a1dff5a090cd8/python_installation_execution-executing_pytask.pdf
Binary file not shown.
Binary file modified
BIN
+43 KB
(140%)
...loads/e57f785da689e76e22de44c7e95d151d/python_installation_execution-executing_pytest.pdf
Binary file not shown.
Binary file modified
BIN
+44.1 KB
(170%)
_downloads/e738e5c4c7cb6626d110e165b864dac1/scientific_computing-calculations_on_arrays.pdf
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
_downloads/eb76c8cf78f480f510d8e685f897a080/pandas-dataframes_and_series.pdf
Binary file not shown.
Binary file modified
BIN
-53.6 KB
(69%)
_downloads/f35c8681367644c9662366746a03df79/software_engineering-naming.pdf
Binary file not shown.
Binary file modified
BIN
+51 KB
(160%)
_downloads/fa0fef36394d64b26fae2fe860a3d526/scientific_computing-broadcasting.pdf
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
_sources/software_engineering/error_handling_intro/objectives_materials.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Introduction to error handling \n", | ||
"\n", | ||
"## Learning Objectives\n", | ||
"\n", | ||
"After working through this topic, you should be able to:\n", | ||
"\n", | ||
"- Explain why error handling is important\n", | ||
"\n", | ||
"## Materials\n", | ||
"\n", | ||
"Here is the\n", | ||
"[screencast](https://player.uni-bonn.educast.nrw/96b79d38-8313-4025-bfcb-66ccd649e507).\n", | ||
"These are the [slides](software_engineering-error_handling_intro.pdf).\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"## Quiz" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"tags": [ | ||
"remove-input" | ||
] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"content = {\n", | ||
" \"What are benefits of good error handling\": {\n", | ||
" \"You make fewer mistakes\": False,\n", | ||
" \"You find mistakes earlier\": True,\n", | ||
" \"You understand what went wrong immediately\": True,\n", | ||
" \"Your code is more readable\": False,\n", | ||
" },\n", | ||
"}\n", | ||
"\n", | ||
"from epp_topics.quiz_utilities import display_quiz\n", | ||
"\n", | ||
"display_quiz(content)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
80 changes: 80 additions & 0 deletions
80
_sources/software_engineering/raising_errors/objectives_materials.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# How to raise errors?\n", | ||
"\n", | ||
"## Learning Objectives\n", | ||
"\n", | ||
"After working through this topic, you should be able to:\n", | ||
"\n", | ||
"- Use the `raise` keyword to raise errors\n", | ||
"- Decide when to use built-in vs. custom exceptions \n", | ||
"- Define custom exceptions\n", | ||
"- Explain the concept of `fail-functions`\n", | ||
"\n", | ||
"## Materials\n", | ||
"\n", | ||
"Here is the\n", | ||
"[screencast](https://player.uni-bonn.educast.nrw/57b9f591-e18c-47aa-a2cf-5f66bf22846c).\n", | ||
"These are the [slides](software_engineering-raising_errors.pdf).\n", | ||
"\n", | ||
"\n", | ||
"## Quiz" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"tags": [ | ||
"remove-input" | ||
] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"content = {\n", | ||
" \"How can you raise exceptions in Python?\": {\n", | ||
" \"With the `raise` keyword\": True,\n", | ||
" \"With the `throw` keyword\": False,\n", | ||
" \"With the `except` keyword\": False,\n", | ||
" \"With the `yield` keyword\": False,\n", | ||
" },\n", | ||
" \"What is the benefit of fail-functions?\": {\n", | ||
" \"They tell you what is checked without cluttering the code\": True,\n", | ||
" \"They let you re-use code for error handling\": True,\n", | ||
" \"They are faster than raising exceptions\": False,\n", | ||
" \"They force you to think about a good name for each check\": True,\n", | ||
" },\n", | ||
" \"What are benefits of custom exceptions\": {\n", | ||
" \"They can be more explicit than the built-in exceptions\": True,\n", | ||
" \"They are faster than built-in exceptions\": False,\n", | ||
" \"They replace the need for good error messages\": False,\n", | ||
" \"They show you are a good programme\": False,\n", | ||
" },\n", | ||
"}\n", | ||
"\n", | ||
"from epp_topics.quiz_utilities import display_quiz\n", | ||
"\n", | ||
"display_quiz(content)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
72 changes: 72 additions & 0 deletions
72
_sources/software_engineering/which_errors_to_handle/objectives_materials.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Which errors to handle?\n", | ||
"\n", | ||
"## Learning Objectives\n", | ||
"\n", | ||
"After working through this topic, you should be able to:\n", | ||
"\n", | ||
"- Decide for which inputs you need error handling\n", | ||
"- Explain when to use testing instead of error handling\n", | ||
"- Decide where to do error handling\n", | ||
"\n", | ||
"## Materials\n", | ||
"\n", | ||
"Here is the\n", | ||
"[screencast](https://player.uni-bonn.educast.nrw/b728a649-b661-48f7-b13f-d28f92eea888).\n", | ||
"These are the [slides](software_engineering-which_errors_to_handle.pdf).\n", | ||
"\n", | ||
"\n", | ||
"## Quiz" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"tags": [ | ||
"remove-input" | ||
] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"content = {\n", | ||
" \"For which inputs of your functions should you do error handling?\": {\n", | ||
" \"Those generated by other functions to make sure those functions work\": False,\n", | ||
" \"Those passed in by a user\": True,\n", | ||
" \"You should do error handling for all inputs of all functions\": False,\n", | ||
" \"Those that use complex data structures\": False,\n", | ||
" },\n", | ||
" \"Where should you do error handling?\": {\n", | ||
" \"As early as possible so users get early feedback\": True,\n", | ||
" \"Right before you use the input\": False,\n", | ||
" \"At the end of the function to check that the result is valid\": False,\n", | ||
" },\n", | ||
"}\n", | ||
"\n", | ||
"from epp_topics.quiz_utilities import display_quiz\n", | ||
"\n", | ||
"display_quiz(content)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
Oops, something went wrong.