Skip to content

Commit

Permalink
Fix forecast translate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahan Kropf committed Nov 21, 2023
1 parent b22677f commit 1946bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions climada/engine/test/test_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1946bca

Please sign in to comment.