Skip to content

Commit e66254a

Browse files
author
Chahan Kropf
committed
Fix deprecation notice for datasets.dims -> datasets.sizes
1 parent 1994104 commit e66254a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/hazard/tc_tracks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def from_ibtracs_netcdf(
731731
)
732732
ibtracs_ds = ibtracs_ds.sel(storm=valid_storms_mask)
733733

734-
if ibtracs_ds.dims["storm"] == 0:
734+
if ibtracs_ds.sizes["storm"] == 0:
735735
LOGGER.info(
736736
"After discarding IBTrACS events without valid values by the selected "
737737
"reporting agencies, there are no tracks left that match the specified "

0 commit comments

Comments
 (0)