Skip to content

Commit

Permalink
Merge pull request #82 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
remove year
  • Loading branch information
santiago123x authored Dec 5, 2023
2 parents ca54812 + 887b24f commit 1490d13
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 @@ -217,7 +217,7 @@ def process_escenario(self,data, season, month_start, month_end, year,index):
if season == 'Dec-Jan':
m1 = data[(data['month'] == 12) & (data['year'] == year)]
m2 = pd.concat([m1,data[(data['month'] == 1) & (data['year'] == year + 1)]])
m2.loc['index'] = index
m2['index'] = index
else:
m2 = data[(data['year'] == year)]
m2 = m2[(m2['month'] >= month_start) & (m2['month'] <= month_end)]
Expand Down Expand Up @@ -479,7 +479,7 @@ def save_forecast(self, station, output_root, year_forecast, current_month, seas
df = seasons_range[(seasons_range['id'] == IDs[i])]

df = df.reset_index()
df = df.drop(columns = ['year'])
#df = df.drop(columns = ['year'])

df = self.add_year(df, year_forecast, current_month)

Expand Down

0 comments on commit 1490d13

Please sign in to comment.