Skip to content

Commit

Permalink
Merge pull request #81 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
santiago123x authored Nov 22, 2023
2 parents 0a67581 + a28d033 commit ca54812
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 185 deletions.
4 changes: 3 additions & 1 deletion src/aclimate_resampling/aclimate_run_resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def main():
parser.add_argument("-m", "--prev-months", type=int, help="Previous months", required=True)
parser.add_argument("-c", "--cores", type=int, help="Number of cores", required=True)
parser.add_argument("-y", "--forecast-year", type=int, help="Forecast year", required=True)
parser.add_argument("-a", "--actual-month", type=int, help="Actual month", required=True)


args = parser.parse_args()

Expand All @@ -38,7 +40,7 @@ def main():
start_date = (datetime.date.today() - pd.DateOffset(months=months_previous)).replace(day=1)
cores = args.cores

ar = Resampling(path, country, year_forecast = args.forecast_year)
ar = Resampling(path, country, year_forecast = args.forecast_year, current_month= args.actual_month)
ar.resampling()
dd = CompleteData(start_date,country,path,cores=cores)
dd.run()
Expand Down
Loading

0 comments on commit ca54812

Please sign in to comment.