Skip to content

Commit

Permalink
to ensure year to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Sep 22, 2024
1 parent 4d1c7e4 commit e9c000e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xcdat/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,9 +1085,9 @@ def _drop_incomplete_djf(self, dataset: xr.Dataset) -> xr.Dataset:
ds[self.dim].dt.year.values[-1],
)
incomplete_seasons = (
f"{start_year:04d}-01",
f"{start_year:04d}-02",
f"{end_year:04d}-12",
f"{int(start_year):04d}-01",
f"{int(start_year):04d}-02",
f"{int(end_year):04d}-12",
)

for year_month in incomplete_seasons:
Expand Down

0 comments on commit e9c000e

Please sign in to comment.