Skip to content

Commit

Permalink
updated MO replacement config
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoderys committed Jan 14, 2025
1 parent f6b72a2 commit 7d18f34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/cgm_worker/replacement_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"timeHorizon": {
"Request_list": ["ID", "1D", "2D", "WK", "1D", "MO", "YR"]
},
"month_ahead": {
"hours": ["07:30", "08:30", "09:30", "06:30", "05:30", "04:30"],
"business_type": ["1D"]
},
"hours": [
{
"hour": "00:30",
Expand Down
4 changes: 2 additions & 2 deletions emf/loadflow_tool/replacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def make_lists_priority(timestamp, target_timehorizon, conf):

# Month ahead requires separate replacement logic
if target_timehorizon == 'MO':
hour_list_final = ['07:30', '08:30', '09:30', '06:30', '05:30', '04:30']
hour_list_final = [hour for hour in conf["month_ahead"]["hours"]]
day_list_final = [get_first_monday_of_last_month(timestamp).strftime("%Y-%m-%d")]
business_list_final = ['1D']
business_list_final = conf["month_ahead"]['business_type']

return hour_list_final, day_list_final, business_list_final

Expand Down

0 comments on commit 7d18f34

Please sign in to comment.