Skip to content

Commit

Permalink
Update temporal.py to properly handle piControl simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Sep 21, 2024
1 parent 753a046 commit 40cd14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xcdat/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ def _drop_incomplete_djf(self, dataset: xr.Dataset) -> xr.Dataset:
ds[self.dim].dt.year.values[0],
ds[self.dim].dt.year.values[-1],
)
incomplete_seasons = (f"{start_year}-01", f"{start_year}-02", f"{end_year}-12")
incomplete_seasons = (f"{start_year:04d}-01", f"{start_year:04d}-02", f"{end_year:04d}-12")

for year_month in incomplete_seasons:
try:
Expand Down

0 comments on commit 40cd14e

Please sign in to comment.