From cced7957f94119e646880c15ff7d5b0c5dc380a2 Mon Sep 17 00:00:00 2001 From: Sven van der Burg Date: Tue, 19 Nov 2024 08:51:51 +0100 Subject: [PATCH] Fix #396: Explictly mention which file to edit in challenge Use classes to abstract out data loading --- _episodes/33-code-decoupling-abstractions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_episodes/33-code-decoupling-abstractions.md b/_episodes/33-code-decoupling-abstractions.md index acc4c208..5db6932f 100644 --- a/_episodes/33-code-decoupling-abstractions.md +++ b/_episodes/33-code-decoupling-abstractions.md @@ -197,7 +197,7 @@ In addition, implementation of the method `get_area()` is hidden too (abstractio > `load_inflammation_data()` function we wrote in the previous exercise as a method of this class. > The directory path where to load the files from should be passed in the class' constructor method. > Finally, construct an instance of the class `CSVDataSource` outside the statistical -> analysis and pass it to `analyse_data()` function. +> analysis and pass it to the `analyse_data()` function in the file `inflammation-analysis.py`. >> ## Hint >> At the end of this exercise, the code in the `analyse_data()` function should look like: >> ```python @@ -229,7 +229,7 @@ In addition, implementation of the method `get_area()` is hidden too (abstractio >> data = map(models.load_csv, data_file_paths) >> return list(data) >> ``` ->> In the controller, we create an instance of CSVDataSource and pass it +>> In the controller (in `inflammation-analysis.py`) , we create an instance of CSVDataSource and pass it >> into the the statistical analysis function. >> >> ```python