Skip to content

Commit

Permalink
Fix carpentries-incubator#396: Explictly mention which file to edit i…
Browse files Browse the repository at this point in the history
…n challenge Use classes to abstract out data loading
  • Loading branch information
svenvanderburg committed Nov 19, 2024
1 parent 9a1bbec commit cced795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _episodes/33-code-decoupling-abstractions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cced795

Please sign in to comment.