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

Calculate detailed utility bills #1109

Merged
merged 35 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
16d75f5
Update build and apply measures.
joseph-robertson Jul 24, 2023
cd7834c
Update testing project yml files.
joseph-robertson Jul 24, 2023
a2c7437
Update run_analysis rb file.
joseph-robertson Jul 24, 2023
5ea1308
Update the changelog.
joseph-robertson Jul 24, 2023
f6a6b85
Add detailed_rates folder.
joseph-robertson Jul 24, 2023
dd47be8
Support tariff assignment only through lookup, not yml.
joseph-robertson Jul 25, 2023
4e772ea
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Jul 25, 2023
d31e71f
Update inputs data dictionary csv file.
joseph-robertson Jul 25, 2023
25c2b56
Upload before running tests.
joseph-robertson Jul 25, 2023
cf450a5
Removed unused sample json files.
joseph-robertson Jul 25, 2023
d184e73
Fix some things related to relative path issues.
joseph-robertson Jul 26, 2023
0fb46c3
Actually commit the detailed rates.
joseph-robertson Jul 26, 2023
97e5db2
Update the changelog. [ci skip]
joseph-robertson Jul 26, 2023
54266e3
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Jul 28, 2023
7af8e6c
Latest results.
Jul 28, 2023
e925865
Ability to specify pv args in lookup file.
joseph-robertson Jul 31, 2023
18cd24e
A few arg name changes.
joseph-robertson Jul 31, 2023
3dd166a
Missed a variable name update.
joseph-robertson Jul 31, 2023
1abf6a5
Latest results.
Aug 1, 2023
e94549c
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Aug 9, 2023
1c2ecce
Latest results.
Aug 10, 2023
29c4a3f
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Aug 16, 2023
881c88e
Latest results.
Aug 16, 2023
7ff8e92
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Aug 18, 2023
4dfa0d1
Latest results.
Aug 19, 2023
4658e68
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Aug 30, 2023
bfef5ff
Latest results.
Aug 30, 2023
9679c87
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Sep 13, 2023
addde00
Latest results.
Sep 14, 2023
c71d1df
Add readme files for simple_rates and detailed_rates data folders. [c…
joseph-robertson Sep 20, 2023
b6a6be6
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Sep 25, 2023
846597b
Latest results.
Sep 26, 2023
77f6091
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Oct 11, 2023
63af4b1
Latest results.
Oct 11, 2023
97c4625
Merge branch 'develop' into detailed-bill-calcs
joseph-robertson Oct 24, 2023
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
16 changes: 8 additions & 8 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:

- name: Run buildstockbatch
run: |
pip install git+https://github.com/NREL/buildstockbatch.git@v2023.06.0
pip install git+https://github.com/NREL/buildstockbatch.git@detailed-bill-calcs

buildstock_local project_national/national_baseline.yml
buildstock_local project_testing/testing_baseline.yml
Expand Down Expand Up @@ -156,13 +156,6 @@ jobs:

python test/process_bsb_analysis.py

- name: Run tests
run: |
sudo gem install minitest-reporters
sudo gem install simplecov
sudo gem install simplecov-html
ruby test/test_bsb_analysis.rb

- name: Upload integration results
uses: actions/upload-artifact@v3
with:
Expand All @@ -181,6 +174,13 @@ jobs:
project_testing/testing_upgrades/results_csvs/results_up16.csv
name: buildstockbatch_results_csvs

- name: Run tests
run: |
sudo gem install minitest-reporters
sudo gem install simplecov
sudo gem install simplecov-html
ruby test/test_bsb_analysis.rb

compare-tools:
runs-on: ubuntu-latest
needs: [analysis-tests, integration-tests]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Features
- Update characteristics to use EIA 2020 RECS ([#1031](https://github.com/NREL/resstock/pull/1031))
- Include HVAC secondary heating capabilities for project_testing ([#1090](https://github.com/NREL/resstock/pull/1090))
- For heat pump upgrades, adds the ability to set the existing primary (non-shared) heating system as the backup system using only a single option from the lookup ([#1074](https://github.com/NREL/resstock/pull/1074))
- Add ability to calculate detailed utility bills based on a user-specified TSV file of paths to JSON utility rate tariff files ([#1109](https://github.com/NREL/resstock/pull/1109))

Fixes
- Set standard format for options_lookup ([#962](https://github.com/NREL/resstock/pull/962))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ build_existing_model.simulation_control_run_period_calendar_year,"This numeric f
build_existing_model.simulation_control_run_period_end_day_of_month,This numeric field should contain the ending day of the ending month (must be valid for month) for the annual run period desired.
build_existing_model.simulation_control_run_period_end_month,"This numeric field should contain the end month number (1 = January, 2 = February, etc.) for the annual run period desired."
build_existing_model.simulation_control_timestep,Value must be a divisor of 60.
build_existing_model.utility_bill_detailed_filepaths,"Relative paths of detailed utility rates. Paths are relative to the resources folder. If multiple scenarios, use a comma-separated list. Files must contain the name of the Parameter as the column header."
build_existing_model.utility_bill_electricity_filepaths,"Electricity tariff file specified as an absolute/relative path to a file with utility rate structure information. Tariff file must be formatted to OpenEI API version 7. If multiple scenarios, use a comma-separated list."
build_existing_model.utility_bill_electricity_fixed_charges,"Electricity utility bill monthly fixed charges. If multiple scenarios, use a comma-separated list."
build_existing_model.utility_bill_electricity_marginal_rates,"Electricity utility bill marginal rates. If multiple scenarios, use a comma-separated list."
build_existing_model.utility_bill_fuel_oil_fixed_charges,"Fuel oil utility bill monthly fixed charges. If multiple scenarios, use a comma-separated list."
Expand Down
1 change: 1 addition & 0 deletions measures/ApplyUpgrade/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ def run(model, runner, user_arguments)

# Utility Bills
measures['BuildResidentialHPXML'][0]['utility_bill_scenario_names'] = values['utility_bill_scenario_names']
measures['BuildResidentialHPXML'][0]['utility_bill_electricity_filepaths'] = values['utility_bill_electricity_filepaths']
measures['BuildResidentialHPXML'][0]['utility_bill_electricity_fixed_charges'] = values['utility_bill_electricity_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_electricity_marginal_rates'] = values['utility_bill_electricity_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_natural_gas_fixed_charges'] = values['utility_bill_natural_gas_fixed_charges']
Expand Down
6 changes: 3 additions & 3 deletions measures/ApplyUpgrade/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>apply_upgrade</name>
<uid>33f1654c-f734-43d1-b35d-9d2856e41b5a</uid>
<version_id>4ecb5790-01ae-4240-a5b8-21fb64c40dcf</version_id>
<version_modified>2023-08-21T22:19:47Z</version_modified>
<version_id>b72168b8-f6fb-487d-96e0-d601b795f359</version_id>
<version_modified>2023-08-30T17:32:40Z</version_modified>
<xml_checksum>9339BE01</xml_checksum>
<class_name>ApplyUpgrade</class_name>
<display_name>Apply Upgrade</display_name>
Expand Down Expand Up @@ -6330,7 +6330,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>FD9488A5</checksum>
<checksum>71CCCC6A</checksum>
</file>
<file>
<filename>constants.rb</filename>
Expand Down
Loading