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

New ResStockArgumentsPostHPXML measure #929

Open
wants to merge 32 commits into
base: develop
Choose a base branch
from

Conversation

joseph-robertson
Copy link
Contributor

@joseph-robertson joseph-robertson commented May 13, 2022

Pull Request Description

Closes #927. This is the pre-cursor to #931. In short, we can use generated schedules (e.g., occupant schedule) to create other detailed schedules (e.g., setpoint schedules).

Checklist

Not all may apply:

  • Tests (and test files) have been updated
  • Documentation has been updated
  • Changelog has been updated
  • openstudio tasks.rb update_measures has been run
  • No unexpected regression test changes on CI (checked comparison artifacts)

@joseph-robertson joseph-robertson self-assigned this May 13, 2022
@shorowit
Copy link
Contributor

I guess one small drawback is that options_lookup has to change to ResStockArgumentsPreHPXML. I don't know which is better -- having clear/consistent measure names (e.g., ResStockArgumentsPreHPXML and ResStockArgumentsPostHPXML) or not changing options_lookup (e.g., ResStockArguments and ResStockHPXML)).

@joseph-robertson
Copy link
Contributor Author

You think ResStockHPXML would be more appropriate as the "post" version? I feel like it'd be better as the "pre" version. Maybe we could go with ResStockHPXML as the original ResStockArguments measure name, and ResStockSchedules as the new "post" HPXML measure? Or do we not want to limit the "post" measure to just schedules?

@shorowit
Copy link
Contributor

Yes, I think the post measure should be more generic since it may modify the HPXML in the future.

I suggest ResStockArguments for the pre measure because A) it's not a change and B) some ResStock users may not even know (or care) what HPXML is.

@joseph-robertson joseph-robertson changed the title ResStockArguments refactor New ResStockArgumentsPostHPXML measure May 18, 2022
joseph-robertson and others added 7 commits May 18, 2022 17:50
…25e1b

cdaa4925e1b Merge pull request #1086 from NREL/sleep-schedule
7ef60a444ed Support schedule file debug for run_simulation, and test.
094b1a69e95 Remove a measure error test.
fb89c3a431b Regenerate schedule files.
c651ae27576 Update new location method.
10f33001530 Remove col names check.
94b06377268 Add optional debug argument.
09b0570661c Add another path check for get_epw_path method.
86fffa11572 Merge branch 'master' into sleep-schedule
9c6a1ec42e7 Merge pull request #1083 from NREL/seasons_improvements
cb8b2ba741e Use a common method for getting epw path.
2c0769db710 Merge branch 'master' into sleep-schedule
0f44a841206 Merge branch 'master' of https://github.com/NREL/OpenStudio-HPXML into seasons_improvements
76e3ff5348d Merge pull request #1087 from NREL/timeseries_csv_dview
d08989db0d7 Update schedule file resources.
253bfa04924 Sleep unaffected by vacancy.
7e1a2c711ca First pass.
c1183a71fd3 Export stochastic sleep schedule.
9ee476ef4cc Merge pull request #1084 from NREL/expand_version
976d48063b5 Add EnergyPlus and OpenStudio versions to the `--version` command.
7175511a572 Latest results.
edd732362c4 Fix CI tests. Add workflow test asserts for zero unmet hours when there is no heating/cooling system.
d3257820783 Avoid unmet hours from being reported when there's no heating and/or cooling system.
1c2013611b0 Bugfix if run period is a single day.
aec298eaaaa Use EMS to avoid unmet hours from being reported outside the heating/cooling seasons. Also allows timeseries unmet hours to be requested.
38f55ef2e18 Latest results.
f4d27c50aec Remove ideal air system for seasons implementation. This allows temperatures to properly float (with the small disadvantage that the simulation will now report unmet hours).
a2950212935 Merge pull request #1080 from NREL/vent_bugfix
2ce33f78bff Latest results.
aede0a82fef Fix possible bug when there are multiple vented crawlspaces/attics defined.
e54fbd838b1 Bump to 1.4.0
5c6fb2e4894 Add more files to the release zip.
8d894caafb5 Add ReportUtilityBills measure to release.
a84c3343ccf Fix creation of documentation when creating release zips.

git-subtree-dir: resources/hpxml-measures
git-subtree-split: cdaa4925e1be7f0d1eed7d623d689a5dfe38f2ec
@joseph-robertson joseph-robertson marked this pull request as ready for review June 6, 2022 15:53
Copy link
Contributor

@afontani afontani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • High-level question, does this just stub out the capabilities so that the setpoints and water heat schedules can get built out?
  • Do the integrity checks cover this new measure and missing/duplicative arguments?

# init
new_schedules = {}

# TODO: populate new_schedules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add the schedules here or is this section just a placeholder for future PRs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a placeholder for future PRs.

@@ -62,6 +62,7 @@ The BuildExistingModel and ApplyUpgrade meta measures call the following model m
1 ResStockArguments Model No ResStock
2 BuildResidentialHPXML Model No OS-HPXML
3 BuildResidentialScheduleFile Model No OS-HPXML
4 ResStockArgumentsPostHPXML Model No ResStock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the workflow makes sense. This allows for ResStock custom edits to the OS-HPXML workflow.

@joseph-robertson
Copy link
Contributor Author

joseph-robertson commented Nov 14, 2022

  • High-level question, does this just stub out the capabilities so that the setpoints and water heat schedules can get built out?
  • Do the integrity checks cover this new measure and missing/duplicative arguments?

Correct. This stubs out the capability so that, e.g., HVAC and WH setpoint schedules can get built out.
Good question about the integrity checks. I will look into that. Edit: I suspect that we're covered here. It looks like any measure added to the lookup follows the same checks.

@afontani afontani self-requested a review November 16, 2022 20:40
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.

New ResStockArgumentsPostHPXML measure
3 participants