cse163/book

Tests that compare images might be broken

hschafer opened this issue · 0 comments

Jeff reported a problem with the geospatial practice problem for plotting the population in South America when coding on Repl.It.

Upon further investigation when running on our solution, the expected image and the output image have differing shapes. The expected out has 3 color channels while the output of our solution has 4. I think downloading the image from EdStem caused this problem in differing encodings.

Task: Need to look through all the problems that compare against saved expected output images and make sure they match what our solutions do. Likely need to regenerate these images from the solution code so they have the right dimensions.

Current problematic problems:

  • book_source/coding_problems/module-4-libraries-for-data-science/lesson-10-data-visualization/practice-plotting-1
  • book_source/coding_problems/module-4-libraries-for-data-science/lesson-10-data-visualization/practice-plotting-2
  • book_source/coding_problems/module-7-geospatial-data/lesson-18-geospatial-data-misc-python/practice-population-in-south-america
  • book_source/coding_problems/module-7-geospatial-data/lesson-18-geospatial-data-misc-python/practice-small-and-rich
  • book_source/coding_problems/module-7-geospatial-data/lesson-20-dissolve-join/practice-population-maps