Fix bug in centroids natural earth feature test by peanutfun · Pull Request #768 · CLIMADA-project/climada_python

Changes proposed in this PR:

  • Correctly pass a list to the function
  • Correctly check consistency of input arrays (allclose could also throw errors if the arrays had a wrong size, but this was not accounted for)

The original test incorrectly checked for a ValueError: The natural_earth method would return a string (which was iterable), and a ValueError was thrown because a file could not be read from a single character...

This PR fixes the broken pipeline in develop

PR Author Checklist

PR Reviewer Checklist