Skip to content

Commit

Permalink
Merge pull request #85 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
solving year_forecast issue
  • Loading branch information
andresk159 authored Jan 18, 2024
2 parents 1490d13 + 62a4a98 commit 2fc9182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aclimate_resampling/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def forecast_station(self, station, prob, daily_data_root, output_root, year_for

# Adjust the year if the forecast period is 'tri' if necessary
if any(np.isin(season, tri_seasons)) :
year_forecast = year_forecast+1
year_forecast = year_forecast #+1

# Check if year of forecast is a leap year for February
leap_forecast = (year_forecast%400 == 0) or (year_forecast%4==0 and year_forecast%100!=0)
Expand Down Expand Up @@ -618,4 +618,4 @@ def resampling(self):
).compute(scheduler='processes')
return sample



0 comments on commit 2fc9182

Please sign in to comment.