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

Refactor Sql File methods #1696

Merged
merged 5 commits into from
Mar 3, 2024
Merged

Refactor Sql File methods #1696

merged 5 commits into from
Mar 3, 2024

Conversation

mdahlhausen
Copy link
Collaborator

Pull request overview

Move the SQL access methods into an SqlFile module

Pull Request Author

  • Method changes or additions
  • Added tests for added methods
  • If methods have been deprecated, update rest of code to use the new methods
  • Documented new methods using yard syntax
  • Resolved yard documentation errors for new code (ran bundle exec rake doc)
  • Resolved rubocop syntax errors for new code (ran bundle exec rake rubocop)
  • All new and existing tests passes

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a code review on GitHub
  • All related changes have been implemented: method additions, changes, tests
  • Check rubocop errors
  • Check yard doc errors
  • If fixing a defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If a new feature, test the new feature and try creative ways to break it
  • CI status: all green or justified

- replace thermal_zone_get_unmet_load_hours with thermal_zone_get_annual_occupied_unmet_heating_hours and thermal_zone_get_annual_occupied_unmet_cooling_hours
- replace model_annual_energy_by_fuel_and_enduse with model_get_annual_energy_by_fuel_and_enduse
- replace model_annual_eui_kbtu_per_ft2 with model_get_annual_eui_kbtu_per_ft2
- replace model_annual_eui_kbtu_per_ft2_by_fuel_and_enduse with model_get_annual_eui_kbtu_per_ft2_by_fuel_and_enduse
- replace model_annual_occupied_unmet_cooling_hours with model_get_annual_occupied_unmet_cooling_hours
- replace model_annual_occupied_unmet_cooling_hours_detailed with model_get_annual_occupied_unmet_cooling_hours_detailed
- replace model_annual_occupied_unmet_heating_hours with model_get_annual_occupied_unmet_heating_hours
- replace model_annual_occupied_unmet_heating_hours_detailed with model_get_annual_occupied_unmet_heating_hours_detailed
- replace model_annual_occupied_unmet_hours with model_get_annual_occupied_unmet_hours
- replace model_dd_energy_by_fuel_by_enduse with model_get_dd_energy_by_fuel_and_enduse
- replace model_dd_results_by_end_use_and_fuel_type with model_get_dd_results_by_end_use_and_fuel_type
- replace model_results_by_end_use_and_fuel_type with model_get_annual_results_by_end_use_and_fuel_type
- replace run_query_tabulardatawithstrings with model_tabular_data_query
@mdahlhausen mdahlhausen requested a review from eringold February 28, 2024 22:52
@mdahlhausen
Copy link
Collaborator Author

The fuel types may break with the OS 3.7 update - look at both CIs (3.6.1 and dev)

@mdahlhausen mdahlhausen merged commit 390125e into master Mar 3, 2024
0 of 2 checks passed
@mdahlhausen mdahlhausen deleted the refactor/sql_module branch March 3, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant