From 1946bca41da219053cdcb6810b4c223278514692 Mon Sep 17 00:00:00 2001 From: Chahan Kropf Date: Tue, 21 Nov 2023 16:46:54 +0100 Subject: [PATCH] Fix forecast translate bug --- climada/engine/test/test_forecast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/climada/engine/test/test_forecast.py b/climada/engine/test/test_forecast.py index 2986ad3ce..ef249ae20 100644 --- a/climada/engine/test/test_forecast.py +++ b/climada/engine/test/test_forecast.py @@ -110,12 +110,12 @@ def test_Forecast_plot(self): HAZ_DIR.joinpath('storm_europe_cosmoe_forecast_vmax_testfile.nc'), run_datetime=dt.datetime(2018,1,1), event_date=dt.datetime(2018,1,3)) - haz1.centroids.gdf.geometry.translate(-1.2, 0.6) + haz1.centroids.gdf.geometry = haz1.centroids.gdf.geometry.translate(-1.2, 0.6) haz2 = StormEurope.from_cosmoe_file( HAZ_DIR.joinpath('storm_europe_cosmoe_forecast_vmax_testfile.nc'), run_datetime=dt.datetime(2018,1,1), event_date=dt.datetime(2018,1,3)) - haz2.centroids.gdf.geometry.translate(-1.2, 0.6) + haz2.centroids.gdf.geometry = haz2.centroids.gdf.geometry.translate(-1.2, 0.6) #exposure data = {} data['latitude'] = haz1.centroids.lat