We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2899db commit 9a30fd4Copy full SHA for 9a30fd4
climada/hazard/centroids/test/test_vec_ras.py
@@ -617,8 +617,9 @@ def test_from_vector_file(self):
617
# Test reading values from file with incompatible geometry
618
shp_file = shapereader.natural_earth(resolution='10m', category='cultural',
619
name='populated_places_simple')
620
- with self.assertRaises(ValueError):
621
- centr.values_from_vector_files(shp_file, val_names=['pop_min', 'pop_max'])
+ with self.assertRaises(ValueError) as ve:
+ centr.values_from_vector_files([shp_file], val_names=['pop_min', 'pop_max'])
622
+ self.assertIn('could not be broadcast together with shapes', str(ve.exception))
623
624
def test_from_raster_file_wrong_fail(self):
625
"""Test from_raster_file with wrong centroids"""
0 commit comments