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 (
allclosecould 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
- Read the Contribution Guide
- Correct target branch selected (if unsure, select
develop) - Descriptive pull request title added
- Source branch up-to-date with target branch
- Documentation updated
- Tests updated
- Tests passing
- No new linter issues
- Changelog updated
PR Reviewer Checklist
- Read the Contribution Guide
- CLIMADA Reviewer Checklist passed
- Tests passing
- No new linter issues