From 274cf20f7388b2f410a76941f1814140f89ca5e5 Mon Sep 17 00:00:00 2001 From: Chahan Kropf Date: Thu, 7 Dec 2023 14:27:42 +0100 Subject: [PATCH] Fix typo --- climada/hazard/centroids/centr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climada/hazard/centroids/centr.py b/climada/hazard/centroids/centr.py index 3184390301..9e6e5a8093 100644 --- a/climada/hazard/centroids/centr.py +++ b/climada/hazard/centroids/centr.py @@ -241,7 +241,7 @@ def from_geodataframe(cls, gdf): Centroids Centroids built from the geodataframe. """ - if np.any(geom.geom_type != 'Point'): + if np.any(gdf.geom_type != 'Point'): raise ValueError( 'The inpute geodataframe contains geometries' ' that are not points.'