Skip to content

Commit 27b9e80

Browse files
update to xarray 2024.2 (#851)
1 parent 284607a commit 27b9e80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

climada/hazard/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def year_month_day_accessor(
840840
return array.dt.strftime("%Y-%m-%d").values
841841

842842
# Handle access errors
843-
except (ValueError, TypeError) as err:
843+
except (ValueError, TypeError, AttributeError) as err:
844844
if strict:
845845
raise err
846846

requirements/env_climada.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ dependencies:
3838
- tabulate>=0.9
3939
- tqdm>=4.66
4040
- unittest-xml-reporting>=3.2
41-
- xarray>=2024.1,<2024.2 # 2024.2 introduced an unhandled AttributeError in Hazard.from_xarray_raster
41+
- xarray>=2024.2
4242
- xlrd>=2.0
4343
- xlsxwriter>=3.1

0 commit comments

Comments
 (0)