Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply $/day units fix to minimum charges and URDB v8 script #145

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/ResourceTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def try_get_demand_structure(urdb_name, data_name):
urdb_data['ur_annual_min_charge'] = min_charge
else:
if min_charge_units == "$/day":
min_charge *= 365 / 30
min_charge *= 365 / 12
urdb_data['ur_monthly_min_charge'] = min_charge

try_get_schedule('energyweekdayschedule', 'ur_ec_sched_weekday')
Expand Down
4 changes: 2 additions & 2 deletions files/UtilityRateTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def try_get_demand_structure(urdb_name, data_name):
fixed_charge = urdb_response['fixedchargefirstmeter']
fixed_charge_units = urdb_response['fixedchargeunits']
if fixed_charge_units == "$/day":
fixed_charge *= 365 / 30
fixed_charge *= 365 / 12
elif fixed_charge_units == "$/year":
fixed_charge /= 12
urdb_data['ur_monthly_fixed_charge'] = fixed_charge
Expand All @@ -105,7 +105,7 @@ def try_get_demand_structure(urdb_name, data_name):
urdb_data['ur_annual_min_charge'] = min_charge
else:
if min_charge_units == "$/day":
min_charge *= 365 / 30
min_charge *= 365 / 12
urdb_data['ur_monthly_min_charge'] = min_charge

try_get_schedule('energyweekdayschedule', 'ur_ec_sched_weekday')
Expand Down