Skip to content

Commit

Permalink
Merge pull request #53 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
change append method
  • Loading branch information
santiago123x authored Sep 8, 2023
2 parents ef0de8c + 04df729 commit 8de5d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aclimate_resampling/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def forecast_station(self,station, prob, daily_data_root, output_root, year_fore

# If year of forecast is a leap year and a year in climate data is not, then add one day to february in climate data
if leap_forecast == True and year.iloc[0] == False:
year_data.append(year_data.sample(1), ignore_index=True)
#year_data.append(year_data.sample(1), ignore_index=True)
year_data = pd.concat([year_data, year_data.sample(1)], ignore_index=True)
year_data.iloc[-1,0] = 29
else:

Expand Down

0 comments on commit 8de5d09

Please sign in to comment.