Skip to content

Commit

Permalink
Add optional year input for GET requests to /simulated_load
Browse files Browse the repository at this point in the history
To shift CRB profiles to the calendar year of the input
  • Loading branch information
Bill-Becker committed Jan 17, 2025
1 parent 1c1bc31 commit 522080d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reoptjl/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ def simulated_load(request):
inputs["longitude"] = float(request.GET['longitude'])
# Optional load_type - will default to "electric"
inputs["load_type"] = request.GET.get('load_type')
# Optional year parameter to shift the CRB profile from 2017 (also 2023) to the input year
if 'year' in request.GET:
inputs["year"] = int(request.GET['year'])

if inputs["load_type"] == 'process_heat':
expected_reference_name = 'industrial_reference_name'
Expand Down

0 comments on commit 522080d

Please sign in to comment.