Skip to content

Commit

Permalink
Fix deprecation notice for datasets.dims -> datasets.sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahan Kropf committed Dec 9, 2024
1 parent 1994104 commit e66254a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/hazard/tc_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def from_ibtracs_netcdf(
)
ibtracs_ds = ibtracs_ds.sel(storm=valid_storms_mask)

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

0 comments on commit e66254a

Please sign in to comment.